Fix comment style + improve comments

pull/21833/head
Clemens Zeidler 2021-03-13 21:53:58 +13:00
parent a8a8741c06
commit 228070f533
1 changed files with 16 additions and 14 deletions

View File

@ -44,7 +44,9 @@ export enum MessageComposerAction {
EditRedo = 'EditRedo', EditRedo = 'EditRedo',
/** Insert new line */ /** Insert new line */
NewLine = 'NewLine', NewLine = 'NewLine',
/** Move the cursor to the start of the message */
MoveCursorToStart = 'MoveCursorToStart', MoveCursorToStart = 'MoveCursorToStart',
/** Move the cursor to the end of the message */
MoveCursorToEnd = 'MoveCursorToEnd', MoveCursorToEnd = 'MoveCursorToEnd',
} }
@ -60,7 +62,7 @@ export enum AutocompleteAction {
NextSelection = 'NextSelection', NextSelection = 'NextSelection',
} }
/** Actions for the left room list sidebar */ /** Actions for the room list sidebar */
export enum RoomListAction { export enum RoomListAction {
/** Clear room list filter field */ /** Clear room list filter field */
ClearSearch = 'ClearSearch', ClearSearch = 'ClearSearch',
@ -86,17 +88,17 @@ export enum RoomAction {
DismissReadMarker = 'DismissReadMarker', DismissReadMarker = 'DismissReadMarker',
/** Jump to oldest unread message */ /** Jump to oldest unread message */
JumpToOldestUnread = 'JumpToOldestUnread', JumpToOldestUnread = 'JumpToOldestUnread',
/* Upload a file */ /** Upload a file */
UploadFile = 'UploadFile', UploadFile = 'UploadFile',
/* Focus search message in a room (must be enabled) */ /** Focus search message in a room (must be enabled) */
FocusSearch = 'FocusSearch', FocusSearch = 'FocusSearch',
/* Jump to the first (downloaded) message in the room */ /** Jump to the first (downloaded) message in the room */
JumpToFirstMessage = 'JumpToFirstMessage', JumpToFirstMessage = 'JumpToFirstMessage',
/* Jump to the latest message in the room */ /** Jump to the latest message in the room */
JumpToLatestMessage = 'JumpToLatestMessage', JumpToLatestMessage = 'JumpToLatestMessage',
} }
/** Actions for navigating do various menus / dialogs / screens */ /** Actions for navigating do various menus, dialogs or screens */
export enum NavigationAction { export enum NavigationAction {
/** Jump to room search (search for a room) */ /** Jump to room search (search for a room) */
FocusRoomSearch = 'FocusRoomSearch', FocusRoomSearch = 'FocusRoomSearch',
@ -104,17 +106,17 @@ export enum NavigationAction {
ToggleRoomSidePanel = 'ToggleRoomSidePanel', ToggleRoomSidePanel = 'ToggleRoomSidePanel',
/** Toggle the user menu */ /** Toggle the user menu */
ToggleUserMenu = 'ToggleUserMenu', ToggleUserMenu = 'ToggleUserMenu',
/* Toggle the short cut help dialog */ /** Toggle the short cut help dialog */
ToggleShortCutDialog = 'ToggleShortCutDialog', ToggleShortCutDialog = 'ToggleShortCutDialog',
/* Got to the Element home screen */ /** Got to the Element home screen */
GoToHome = 'GoToHome', GoToHome = 'GoToHome',
/* Select prev room */ /** Select prev room */
SelectPrevRoom = 'SelectPrevRoom', SelectPrevRoom = 'SelectPrevRoom',
/* Select next room */ /** Select next room */
SelectNextRoom = 'SelectNextRoom', SelectNextRoom = 'SelectNextRoom',
/* Select prev room with unread messages*/ /** Select prev room with unread messages */
SelectPrevUnreadRoom = 'SelectPrevUnreadRoom', SelectPrevUnreadRoom = 'SelectPrevUnreadRoom',
/* Select next room with unread messages*/ /** Select next room with unread messages */
SelectNextUnreadRoom = 'SelectNextUnreadRoom', SelectNextUnreadRoom = 'SelectNextUnreadRoom',
} }