mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-04-28 13:48:50 +08:00
38 lines
2.2 KiB
Markdown
38 lines
2.2 KiB
Markdown
# Hotkeys used in the library
|
|
The following hotkeys are built-in ones and cannot be overrided or disabled from an application
|
|
|
|
### Global hotkeys
|
|
- Ctrl+Q Ctrl+Q - exit application
|
|
|
|
### Window manipulations
|
|
- Ctrl+W Ctrl+H - moves the active Window to the bottom of window stack ("hides" active Window)
|
|
- Ctrl+W Ctrl+M - maximizes/restores the active Window
|
|
- Ctrl+W Ctrl+C - closes the active Window. If the windows is the last visible window of an application then application closes as well
|
|
- Ctrl+P "Arrow" - changes active Window position: moves Window to the direction of <arrow>
|
|
- Ctrl+S "Arrow" - changes active Window size: Left and Down increase width and height, Right and Up decrease width and height
|
|
|
|
Note: Ctrl+P and Ctrl+S are sticky combinations. It means that if you want to move/resize active Window by more tham one character you do not need to press Ctrl+P or Ctrl+S every time. You just press Ctrl+S/P and then press the same arrow key as many times as you need. Sticky mode is off when you press any key other key.
|
|
|
|
### Control interaction in a Window
|
|
- TAB - selects the next control inside active Window
|
|
- Alt+PgDn - the same as TAB
|
|
- Alt+PgUp - selects the previous control inside active Window
|
|
- Space - click Button, Checkbox or RadioGroup control if the control is active
|
|
- Ctrl+C - copy text from active EditField (currently is not supported on OSX)
|
|
- Ctrl+V - paste text to active EditField - old text is replaced (currently is not supported on OSX)
|
|
- Ctrl+R - clears the active EditField
|
|
|
|
### TableView control
|
|
- "Arrow" - moves active cell to the direction of arrow
|
|
- PgUp - moves cursor one screen up
|
|
- PgDn - moves cursor one screen down
|
|
- Home - moves cursor to the first column
|
|
- End - moves cursor to the last column
|
|
- Alt+Home - moves cursor to the first row
|
|
- Alt+End - moves cursor to the last row
|
|
- Enter - emits TableActionEdit event (does nothing by default)
|
|
- F2 - the same as Enter
|
|
- Insert - emits TableActionNew event (does nothing by default)
|
|
- Delete - emits TableActionDelete event (does nothing by default)
|
|
- F4 - changes the active column sort mode in cycles and emits TableActionSort event (cycle consists of two values: SortAsc and SortDesc)
|