KVIrc 5.2.6
Developer APIs
kvi_shortcuts.h
Go to the documentation of this file.
1#ifndef _KVI_SHORTCUT_CLASSFILE_H_
2#error "Do not include kvi_shortcuts.h config file directly: include KviShortcut.h class header instead."
3#endif
4#ifndef _KVI_SHORTCUTS_H_
5#define _KVI_SHORTCUTS_H_
6//=============================================================================
7//
8// File : kvi_shortcuts.h
9// Creation date : Fri Dec 11 2009 16:24:46 CEST by Elvio Basello
10//
11// This file is part of the KVIrc IRC client distribution
12// Copyright (C) 2009 Elvio Basello (hell at hellvis69 dot netsons dot org)
13//
14// This program is FREE software. You can redistribute it and/or
15// modify it under the terms of the GNU General Public License
16// as published by the Free Software Foundation; either version 2
17// of the License, or (at your option) any later version.
18//
19// This program is distributed in the HOPE that it will be USEFUL,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22// See the GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License
25// along with this program. If not, write to the Free Software Foundation,
26// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27//
28//=============================================================================
29
35
132
133//
134// Please keep this list ordered by shortcut key and not by name :)
135//
136
137#define KVI_SHORTCUTS_HELP QKeySequence::HelpContents // F1
138#define KVI_SHORTCUTS_INPUT_SELECT_ALL QKeySequence::SelectAll // Ctrl+A
139#define KVI_SHORTCUTS_INPUT_BOLD QKeySequence::Bold // Ctrl+B
140#define KVI_SHORTCUTS_INPUT_COPY QKeySequence::Copy // Ctrl+C
141#define KVI_SHORTCUTS_WIN_SEARCH QKeySequence::Find // Ctrl+F
142#define KVI_SHORTCUTS_INPUT_ITALIC QKeySequence::Italic // Ctrl+I
143#define KVI_SHORTCUTS_JOIN "Ctrl+J" // Ctrl+J
144#define KVI_SHORTCUTS_INPUT_COLOR "Ctrl+K" // Ctrl+K
145#define KVI_SHORTCUTS_WIN_SCROLL_TO_LAST_READ_LINE "Ctrl+L" // Ctrl+L
146#define KVI_SHORTCUTS_TOGGLE_MENU_BAR "Ctrl+M" // Ctrl+M
147#define KVI_SHORTCUTS_CONTEXT QKeySequence::New // Ctrl+N
148#define KVI_SHORTCUTS_INPUT_RESET "Ctrl+O" // Ctrl+O
149#define KVI_SHORTCUTS_INPUT_PLAINTEXT "Ctrl+P" // Ctrl+P
150#ifdef COMPILE_ON_MAC // ------
151#define KVI_SHORTCUTS_QUIT QString() // Qstring()
152#else // ------
153#define KVI_SHORTCUTS_QUIT "Ctrl+Q" // Ctrl+Q
154#endif // ------
155#define KVI_SHORTCUTS_INPUT_REVERSE "Ctrl+R" // Ctrl+R
156#define KVI_SHORTCUTS_SERVERS "Ctrl+S" // Ctrl+S
157#define KVI_SHORTCUTS_TOGGLE_TREE_LIST "Ctrl+T" // Ctrl+T
158#define KVI_SHORTCUTS_INPUT_UNDERLINE QKeySequence::Underline // Ctrl+U
159#define KVI_SHORTCUTS_INPUT_PASTE QKeySequence::Paste // Ctrl+V
160#define KVI_SHORTCUTS_WIN_CLOSE "Ctrl+W" // Ctrl+W QKeySequence::Close seems to be problematic
161#define KVI_SHORTCUTS_INPUT_CUT QKeySequence::Cut // Ctrl+X
162#define KVI_SHORTCUTS_INPUT_COMMANDLINE "Ctrl+Y" // Ctrl+Y
163#define KVI_SHORTCUTS_INPUT_UNDO QKeySequence::Undo // Ctrl+Z
164
165#define KVI_SHORTCUTS_INPUT_ICON "Alt+E" // Alt+E
166#define KVI_SHORTCUTS_USERS "Alt+U" // Alt+U
167
168#define KVI_SHORTCUTS_AWAY "Ctrl+Shift+A" // Ctrl+Shift+A
169#define KVI_SHORTCUTS_EDITORS_TOOLBAR "Ctrl+Shift+B" // Ctrl+Shift+B
170#define KVI_SHORTCUTS_CONNECT "Ctrl+Shift+C" // Ctrl+Shift+C
171#define KVI_SHORTCUTS_EDITORS_CLASS "Ctrl+Shift+D" // Ctrl+Shift+D
172#define KVI_SHORTCUTS_EDITORS_EVENT "Ctrl+Shift+E" // Ctrl+Shift+E
173#define KVI_SHORTCUTS_IDENTITY "Ctrl+Shift+I" // Ctrl+Shift+I
174#define KVI_SHORTCUTS_EDITORS_ALIAS "Ctrl+Shift+L" // Ctrl+Shift+L
175#define KVI_SHORTCUTS_MANAGE_THEMES "Ctrl+Shift+M" // Ctrl+Shift+M
176#define KVI_SHORTCUTS_MANAGE_ADDONS "Ctrl+Shift+N" // Ctrl+Shift+N
177#define KVI_SHORTCUTS_OPTIONS "Ctrl+Shift+O" // Ctrl+Shift+O
178#define KVI_SHORTCUTS_EDITORS_POPUP "Ctrl+Shift+P" // Ctrl+Shift+P
179#define KVI_SHORTCUTS_EDITORS_ACTION "Ctrl+Shift+Q" // Ctrl+Shift+Q
180#define KVI_SHORTCUTS_EDITORS_RAW "Ctrl+Shift+R" // Ctrl+Shift+R
181#define KVI_SHORTCUTS_EDITORS_TESTER "Ctrl+Shift+S" // Ctrl+Shift+S
182#define KVI_SHORTCUTS_THEME "Ctrl+Shift+T" // Ctrl+Shift+T
183#define KVI_SHORTCUTS_EXEC "Ctrl+Shift+X" // Ctrl+Shift+X
184#define KVI_SHORTCUTS_INPUT_REDO QKeySequence::Redo // Ctrl+Shift+Z
185#define KVI_SHORTCUTS_WIN_PREV "Alt+Up" // Qt::AltModifier + Qt::Key_Up
186#define KVI_SHORTCUTS_WIN_NEXT "Alt+Down" // Qt::AltModifier + Qt::Key_Down
187#define KVI_SHORTCUTS_WIN_NEXT_TAB QKeySequence::NextChild // Ctrl+Tab
188#define KVI_SHORTCUTS_WIN_PREV_TAB QKeySequence::PreviousChild // Ctrl+Shift+Tab
189#define KVI_SHORTCUTS_WIN_PREV_CONTEXT "Alt+Shift+Up" // Qt::AltModifier + Qt::ShiftModifier + Qt::Key_Up
190#define KVI_SHORTCUTS_WIN_NEXT_CONTEXT "Alt+Shift+Down" // Qt::AltModifier + Qt::ShiftModifier + Qt::Key_Down
191#define KVI_SHORTCUTS_WIN_PREV_HIGHLIGHT "Alt+PgUp" // Qt::AltModifier + Qt::Key_PageUp
192#define KVI_SHORTCUTS_WIN_NEXT_HIGHLIGHT "Alt+PgDown" // Qt::AltModifier + Qt::Key_PageDown
193#define KVI_SHORTCUTS_WIN_PREV_PAGE QKeySequence::MoveToPreviousPage // Qt::Key_PageUp
194#define KVI_SHORTCUTS_WIN_NEXT_PAGE QKeySequence::MoveToNextPage // Qt::Key_PageDown
195#define KVI_SHORTCUTS_WIN_HOME QKeySequence::MoveToStartOfDocument // Qt::ControlModifier + Qt::Key_Home
196#define KVI_SHORTCUTS_WIN_END QKeySequence::MoveToEndOfDocument // Qt::ControlModifier + Qt::Key_End
197#define KVI_SHORTCUTS_WIN_PREV_LINE QKeySequence::SelectPreviousLine // Qt::ShiftModifier + Qt::Key_PageUp
198#define KVI_SHORTCUTS_WIN_NEXT_LINE QKeySequence::SelectNextLine // Qt::ShiftModifier + Qt::Key_PageDown
199#define KVI_SHORTCUTS_INPUT_PREV_WORD QKeySequence::MoveToPreviousWord // Qt::ControlModifier + Qt::Key_Left
200#define KVI_SHORTCUTS_INPUT_NEXT_WORD QKeySequence::MoveToNextWord // Qt::ControlModifier + Qt::Key_Right
201#define KVI_SHORTCUTS_INPUT_PREV_WORD_SELECT QKeySequence::SelectPreviousWord // Qt::ControlModifier + Qt::ShiftModifier + Qt::Key_Left
202#define KVI_SHORTCUTS_INPUT_NEXT_WORD_SELECT QKeySequence::SelectNextWord // Qt::ControlModifier + Qt::ShiftModifier + Qt::Key_Right
203//
204//Ctrl+<digit>: Script accelerators (see OnAccelKeyPressed) // --------------
205//F2-F12, Shift+(F1-F12): Script accelerators (see OnAccelKeyPressed) // --------------
206//
207#define KVI_SHORTCUTS_INPUT_HISTORY "Ctrl+PgUp" // Qt::ControlModifier + Qt::Key_PageUp
208#define KVI_SHORTCUTS_INPUT_PREV_CHAR QKeySequence::MoveToPreviousChar // Qt::Key_Left
209#define KVI_SHORTCUTS_INPUT_NEXT_CHAR QKeySequence::MoveToNextChar // Qt::Key_Right
210#define KVI_SHORTCUTS_INPUT_PREV_CHAR_SELECT QKeySequence::SelectPreviousChar // Qt::ShiftModifier + Qt::Key_Left
211#define KVI_SHORTCUTS_INPUT_NEXT_CHAR_SELECT QKeySequence::SelectNextChar // Qt::ShiftModifier + Qt::Key_Right
212#define KVI_SHORTCUTS_INPUT_DELETE_PREV_WORD QKeySequence::DeleteStartOfWord // Qt::ControlModifier + Qt::Key_Backspace
213#define KVI_SHORTCUTS_INPUT_DELETE_NEXT_WORD QKeySequence::DeleteEndOfWord // Qt::ControlModifier + Qt::Key_Delete
214#define KVI_SHORTCUTS_INPUT_MULTILINE "Alt+Return" // Qt::AltModifier + Qt::Key_Return
215#define KVI_SHORTCUTS_INPUT_MULTILINE_2 "Alt+Enter" // Qt::AltModifier + Qt::Key_Enter
216#define KVI_SHORTCUTS_INPUT_SEND_PLAIN "Ctrl+Return" // Qt::ControlModifier + Qt::Key_Return
217#define KVI_SHORTCUTS_INPUT_SEND_PLAIN_2 "Ctrl+Enter" // Qt::ControlModifier + Qt::Key_Enter
218#define KVI_SHORTCUTS_INPUT_SEND_KVS "Shift+Return" // Qt::ShiftModifier + Qt::Key_Return
219#define KVI_SHORTCUTS_INPUT_SEND_KVS_2 "Shift+Enter" // Qt::ShiftModifier + Qt::Key_Enter
220#define KVI_SHORTCUTS_INPUT_HOME QKeySequence::MoveToStartOfLine // Qt::Key_Home
221#define KVI_SHORTCUTS_INPUT_END QKeySequence::MoveToEndOfLine // Qt::Key_End
222#define KVI_SHORTCUTS_INPUT_HOME_SELECT QKeySequence::SelectStartOfLine // Qt::ShiftModifier + Qt::Key_Home
223#define KVI_SHORTCUTS_INPUT_END_SELECT QKeySequence::SelectEndOfLine // Qt::ShiftModifier + Qt::Key_End
224#define KVI_SHORTCUTS_INPUT_HISTORY_PREV QKeySequence::MoveToPreviousLine // Qt::Key_Up
225#define KVI_SHORTCUTS_INPUT_HISTORY_NEXT QKeySequence::MoveToNextLine // Qt::Key_Down
226#define KVI_SHORTCUTS_INPUT_ESCAPE Qt::Key_Escape // Qt::Key_Escape
227#define KVI_SHORTCUTS_INPUT_DUMMY "Shift+Escape" // Qt::ShiftModifier + Qt::Key_Escape
228#define KVI_SHORTCUTS_WIN_ZOOM_IN QKeySequence::ZoomIn // Ctrl++
229#define KVI_SHORTCUTS_WIN_ZOOM_OUT QKeySequence::ZoomOut // Ctrl+-
230#define KVI_SHORTCUTS_WIN_ZOOM_DEFAULT "Ctrl+0" // Qt::ControlModifier + Qt::Key_0
231#define KVI_SHORTCUTS_INPUT_CORRECT_SPELLING "Ctrl+G" // Qt::ControlModifier + Qt::Key_G
232#define KVI_SHORTCUTS_INPUT_MENU Qt::Key_Menu // Qt::Key_Menu
233
234/*
235 @doc: keyboard
236 @type:
237 generic
238 @title:
239 Keyboard shortcuts
240 @keyterms:
241 Keyboard shortcuts
242 @short:
243 The list of the common keyboard shortcuts
244 @body:
245 This list contains the key sequences associated to some common actions (e.g. selecting text). Since KVIrc 4.2 the shortcuts are dynamic:
246 [ul]
247 [li]more shortcuts can trigger the same actions: Cut is both Ctrl+X and Shift+Del[/li]
248 [li]shortcuts can be adapted to the OS: Help is F1 under Windows and Linux, ⌘? on macOS[/li]
249 [/ul]
250 A full list of available combinations is available at the [anchorlink:http://doc.qt.nokia.com/latest/qkeysequence.html#standard-shortcuts] Qt documentation[/anchorlink]
251 [big]All the standard keys alphabetically ordered[/big]
252 [b]F1:[/b] Help Index (Window)[br]
253 [b]Ctrl+A:[/b] Select all[br]
254 [b]Ctrl+B:[/b] Insert Bold control character[br]
255 [b]Ctrl+C:[/b] Copy to clipboard[br]
256 [b]Ctrl+F:[/b] Open [i]Find Text[/i] dialog[br]
257 [b]Ctrl+G:[/b] Activate spell-checker[br]
258 [b]Ctrl+I:[/b] Insert italic control character[br]
259 [b]Ctrl+L:[/b] Scroll to the [i]last read[/i] line marker[br]
260 [b]Ctrl+J:[/b] Open [i]Join Channels[/i] dialog[br]
261 [b]Ctrl+K:[/b] Open [i]Insert Color[/i] dialog[br]
262 [b]Ctrl+L:[/b] Scroll to the last read line[br]
263 [b]Ctrl+N:[/b] Open new context[br]
264 [b]Ctrl+O:[/b] Insert Reset control character[br]
265 [b]Ctrl+P:[/b] Insert [i]Plain text[/i] control character[br]
266 [b]Ctrl+Q:[/b] Quit [br]
267 [b]Ctrl+R:[/b] Insert Reverse control character[br]
268 [b]Ctrl+S:[/b] Open [i]Servers[/i] dialog [br]
269 [b]Ctrl+T:[/b] Switch between [i]Tree Window List[/i] and [i]Classic Window List[/i][br]
270 [b]Ctrl+U:[/b] Insert Underline control character[br]
271 [b]Ctrl+V:[/b] Paste clipboard contents[br]
272 [b]Ctrl+W:[/b] Close current window[br]
273 [b]Ctrl+X:[/b] Cut to clipboard[br]
274 [b]Ctrl+Y:[/b] Toggle the commandline's KVS/User-friendly mode[br]
275 [b]Ctrl+Z:[/b] Undo last action[br]
276 [b]Ctrl+"+":[/b] Increase font size[br]
277 [b]Ctrl+"-":[/b] Decrease font size[br]
278 [b]Ctrl+0:[/b] Restore default font (and font size)[br]
279
280 [b]Alt+E:[/b] Open [i]Insert icon[/i] dialog[br]
281 [b]Alt+U:[/b] Open [i]Registered users[/i] dialog[br]
282
283 [b]Ctrl+Shift+A:[/b] Go away/back[br]
284 [b]Ctrl+Shift+B:[/b] Open [i]Manage Toolbars[/i] dialog[br]
285 [b]Ctrl+Shift+C:[/b] Connect/disconnect current irc context[br]
286 [b]Ctrl+Shift+D:[/b] Open Class editor[br]
287 [b]Ctrl+Shift+E:[/b] Open Event editor[br]
288 [b]Ctrl+Shift+I:[/b] Open Identity options[br]
289 [b]Ctrl+Shift+L:[/b] Open Alias editor[br]
290 [b]Ctrl+Shift+M:[/b] Open [i]Manage Themes[/i] dialog[br]
291 [b]Ctrl+Shift+N:[/b] Open [i]Manage Addons[/i] dialog[br]
292 [b]Ctrl+Shift+O:[/b] Open [i]Options[/i] dialog[br]
293 [b]Ctrl+Shift+P:[/b] Open Popup editor[br]
294 [b]Ctrl+Shift+Q:[/b] Open Action editor[br]
295 [b]Ctrl+Shift+R:[/b] Open Raw events editor[br]
296 [b]Ctrl+Shift+S:[/b] Open Script tester[br]
297 [b]Ctrl+Shift+T:[/b] Open [i]Theme Options[/i] dialog[br]
298 [b]Ctrl+Shift+X:[/b] Open [i]Execute Script[/i] dialog[br]
299 [b]Ctrl+Shift+Z:[/b] Redo last action
300
301 [big]Window handling related keys:[/big]
302 [b]Alt+UpArrow:[/b] Previous window[br]
303 [b]Alt+DownArrow:[/b] Next window[br]
304 [b]Alt+Shift+UpArrow:[/b] Previous window in the same IRC context[br]
305 [b]Alt+Shift+DownArrow:[/b] Next window in the same IRC context[br]
306 [b]Alt+PageUp:[/b] Previous highlighted window[br]
307 [b]Alt+PageDown:[/b] Next highlighted window[br]
308 [b]Ctrl+UpArrow:[/b] Maximizes current window[br]
309 [b]Ctrl+DownArrow:[/b] Minimizes current window[br]
310 [b]PageUp:[/b] Scroll the output window up one page[br]
311 [b]PageDown:[/b] Scroll the output window down one page[br]
312 [b]Shift+PageUp:[/b] Scroll the output window up one line[br]
313 [b]Shift+PageDown:[/b] Scroll the output window down one line[br]
314 [b]Ctrl+L:[/b] Scroll to the last read line[br]
315 [b]Ctrl+W:[/b] Close current window
316
317 [big]Text editing related hotkeys:[/big]
318 [b]Shift+LeftArrow:[/b] Select the previous character[br]
319 [b]Shift+RightArrow:[/b] Select the next character[br]
320 [b]Ctrl+LeftArrow:[/b] Move to the beginning of the previous word[br]
321 [b]Ctrl+RightArrow:[/b] Move to the end of the next word[br]
322 [b]Ctrl+Shift+LeftArrow:[/b] Select up to the beginning of the previous word[br]
323 [b]Ctrl+Shift+RightArrow:[/b] Select up to the end of the next word[br]
324 [b]Ctrl+Backspace:[/b] Delete last word[br]
325 [b]Ctrl+<digit>:[/b] Script accelerators (see OnAccelKeyPressed)[br]
326 [b]F2-F12, Shift+(F1-F12):[/b] Script accelerators (see OnAccelKeyPressed)[br]
327 [b]Ctrl+B:[/b] Insert the 'bold' mIRC text control character[br]
328 [b]Ctrl+I:[/b] Insert the 'italic' mIRC text control character[br]
329 [b]Ctrl+K:[/b] Insert the 'color' mIRC text control character[br]
330 [b]Ctrl+R:[/b] Insert the 'reverse' mIRC text control character[br]
331 [b]Ctrl+U:[/b] Insert the 'underline' mIRC text control character[br]
332 [b]Ctrl+O:[/b] Insert the 'reset' mIRC text control character[br]
333 [b]Ctrl+P:[/b] Insert the 'non-crypt' (plain text) KVIrc control character used to disable[br] encryption of the current text line[br]
334 [b]Ctrl+C:[/b] Copy the selected text to clipboard[br]
335 [b]Ctrl+X:[/b] Cut the selected text[br]
336 [b]Ctrl+V:[/b] Paste the clipboard contents (same as middle mouse click)[br]
337 [b]Ctrl+Alt+E:[/b] Insert the 'icon' control code and pops up the icon list box[br]
338 [b]UpArrow:[/b] Move backward in the command history and in the history popup[br]
339 [b]DownArrow:[/b] Move forward in the command history and in the history popup[br]
340 [b]Ctrl+PageUp:[/b] Open the history popup[br]
341 [b]LeftArrow:[/b] Move the cursor to the left :)[br]
342 [b]RightArrow:[/b] Move the cursor to the right[br]
343 [b]Shift+LeftArrow:[/b] Move the selection to the left[br]
344 [b]Shift+RightArrow:[/b] Move the selection to the right[br]
345 [b]Alt+Enter:[/b] Show/hide the multi-line editor[br]
346 [b]Ctrl+Enter:[/b] Send message as plain text, ignoring / commands[br]
347 [b]Shift+Enter:[/b] Send message as a kvs command[br]
348 [b]Alt+<numeric_sequence>:[/b] Insert the character by ASCII/Unicode code
349 [example]
350 [b]Alt+32:[/b] Inserts ASCII/Unicode character 32: ' ' (a space)
351 [b]Alt+00032:[/b] Same as above :)
352 [b]Alt+13:[/b] Inserts the Carriage Return (CR) control character
353 [b]Alt+77:[/b] Inserts ASCII/Unicode character 77: 'M'
354 [b]Alt+23566:[/b] Inserts Unicode character 23566 (an ideogram)
355 [/example]
356
357 [big]Completion hotkeys[/big]
358 [b]Tab in the first word of input:[/b] Complete nicknames in the current channel or query[br]
359 [b]Shift+Tab after the first word of input:[/b] Complete nicknames with full mask in the current channel or query[br]
360 [b]Tab after a leading /:[/b] Complete commands[br]
361 [b]Tab after a / in the middle of input:[/b] Complete directories[br]
362 [b]Tab after a $:[/b] Complete function names
363*/
364
365#endif //_KVI_SHORTCUTS_H_