2 # ==================================================================
4 # LyX, the High Level Word Processor
6 # Copyright (C) 1995-1997 Asger Alstrup & The LyX Team
8 # ==================================================================
11 # This is the Mac flavour bind file for LyX/Mac 2.0.x, based on
12 # bindings found in the Mac world.
14 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
15 # with every new install of LyX and your changes will be lost.
16 # Instead, customize a copy of this file placed in
31 # based on the table at http://support.apple.com/kb/HT1343
32 # Note: these bindings assume the swapped Meta and Control modifiers standard of Qt
37 # Status indicates if it is matching the mac standard
39 # -: missing or wrong binding
40 # Status: "Key combination" What it does
41 # +: "Command-Space" # Show or hide the Spotlight search field (if multiple languages are installed, may rotate through enabled script systems)
42 # +: "Option-Command-Space" # Show the Spotlight search results window (if multiple languages are installed, may rotate through keyboard layouts and input methods within a script)
43 # +: "Command-esc" # Open Front Row (if installed)
44 # +: "Option-Eject" # Eject from secondary optical media drive (if one is installed)
45 # +: "Control-Eject" # Show shutdown dialog
46 # +: "Option-Command-Eject" # Put the computer to sleep
47 # +: "Control-Command-Eject" # Quit all applications (after giving you a chance to save changes to open documents), then restart the computer
48 # +: "Control Option-Command-Eject" # Quit all applications (after giving you a chance to save changes to open documents), then shut down the computer
49 # +: "Command-Tab" # Move forward to the next most recently used application in a list of open applications
50 # +: "Shift-Command-Tab" # Move backward through a list of open applications (sorted by recent use)
51 # -: "Control-A" # Move to beginning of line/paragraph
52 # used by menu.bind - paragraph-params
53 # +: "Control-B" # Move one character backward
54 \bind "M-b" "char-backward"
55 # +: "Control-D" # Delete the character in front of the cursor
56 \bind "M-d" "char-delete-forward confirm"
57 # +: "Control-E" # Move to end of line/paragraph
58 \bind "M-e" "line-end"
59 # +: "Control-F" # Move one character forward
60 \bind "M-f" "char-forward"
61 # +: "Control-H" # Delete the character behind the cursor
62 \bind "M-h" "char-delete-backward confirm"
63 # -: "Control-K" # Delete from the character in front of the cursor to the end of the line/paragraph
64 # used by menu.bind - keymap
65 # +: "Control-L" # Center the cursor/selection in the visible area
66 \bind "M-l" "screen-recenter"
67 \bind "F5" "screen-recenter"
68 # +: "Control-N" # Move down one line
70 # +: "Control-O" # Insert a new line after the cursor
71 \bind "M-o" "paragraph-break"
72 # -: "Control-P" # Move up one line
73 # used by menu.bind - layouts
74 # +: "Control-T" # Transpose the character behind the cursor and the character in front of the cursor
75 \bind "M-t" "chars-transpose"
76 # +: "Control-V" # Move down one page
77 \bind "M-v" "scroll page up"
78 # -: "Shift-Tab" # Navigate through controls in a reverse direction
79 # +: "Control-Tab" # Move focus to the next grouping of controls in a dialog or the next table (when Tab moves to the next cell)
80 \bind "M-Tab" "buffer-next"
81 \bind "A-Tab" "buffer-next"
82 # +: "Shift-Control-Tab" # Move focus to the previous grouping of controls
83 \bind "M-S-BackTab" "buffer-previous"
84 \bind "A-S-BackTab" "buffer-previous"
85 # +: "fn-Delete" # Forward Delete (on portable Macs' built-in keyboard)
86 \bind "Delete" "char-delete-forward confirm"
87 # ?: "Control-F1" # Toggle full keyboard access on or off
88 # +: "Control-F2" # Move focus to the menu bar
89 # +: "Control-F3" # Move focus to the Dock
90 # +: "Control-F4" # Move focus to the active (or next) window
91 # +: "Shift-Control-F4" # Move focus to the previously active window
92 # -: "Control-F5" # Move focus to the toolbar.
93 # -: "Control-F6" # Move focus to the first (or next) panel
94 # -: "Shift-Control-F6" # Move focus to the previous panel
95 # -: "Control-F7" # Temporarily override the current keyboard access mode in windows and dialogs
96 # -: "F9" # Tile or untile all open windows
97 # -: "F10" # Tile or untile all open windows in the currently active application
98 # +: "F11" # Hide or show all open windows
99 # +: "F12" # Hide or display Dashboard
100 # -: "Command-`" # Activate the next open window in the frontmost application
101 # -: "Shift-Command-`" # Activate the previous open window in the frontmost application
102 # -: "Option-Command-`" # Move focus to the window drawer
103 # +: "Command- - (minus)" # Decrease the size of the selected item
104 \bind "C-0" "buffer-zoom"
105 \bind "C-minus" "buffer-zoom-out"
106 # +: "Shift-Command-=" # Increase the size of the selected item
107 \bind "C-plus" "buffer-zoom-in"
108 \bind "C-S-equal" "buffer-zoom-in"
109 \bind "C-equal" "buffer-zoom-in"
110 # -: "Command-{" # Left-align a selection
111 # -: "Command-}" # Right-align a selection
112 # -: "Command-|" # Center-align a selection
113 # -: "Command-:" # Display the Spelling window
114 # +: "Command-;" # Find misspelled words in the document
115 \bind "C-S-semicolon" "dialog-show spellchecker"
116 # +: "Command-," # Open the front application's preferences window (if it supports this keyboard shortcut)
117 \bind "C-comma" "dialog-show prefs"
118 # +: "Option-Control-Command-," # Decrease screen contrast
119 # +: "Option-Control-Command-." # Increase screen contrast
120 # -: "Command-?" # Open the application's help in Help Viewer
121 # -: "Option-Command-/" # Turn font smoothing on or off
122 # +: "Shift-Command-3" # Capture the screen to a file
123 # +: "Shift-Control-Command-3" # Capture the screen to the Clipboard
124 # +: "Shift-Command-4" # Capture a selection to a file
125 # +: "Shift-Control-Command-4" # Capture a selection to the Clipboard
126 # +: "Command-A" # Highlight every item in a document or window, or all characters in a text field
127 \bind "C-M-a" "command-sequence buffer-begin ; buffer-end-select"
128 \bind "C-a" "inset-select-all"
129 # +: "Command-B" # Boldface the selected text or toggle boldfaced text on and off
130 \bind "C-M-b" "font-boldsymbol"
131 \bind "C-b" "font-bold"
132 # +: "Command-C" # Copy the selected data to the Clipboard
134 # -: "Shift-Command-C" # Display the Colors window
135 # -: "Option-Command-C" # Copy the style of the selected text
136 # -: "Control-Command-C" # Copy the formatting settings of the selected item and store on the Clipboard
137 # +: "Option-Command-D" # Show or hide the Dock
138 # -: "Command-Control D" # Display the definition of the selected word in the Dictionary application
139 \bind "C-d" "buffer-view dvi" # 'd' for dvi
140 \bind "C-M-d" "command-alternatives master-buffer-view dvi; buffer.view dvi"
141 \bind "C-S-D" "buffer-update dvi" # 'd' for dvi
142 # +: "Command-E" # Use the selection for a find
143 \bind "C-e" "search-string-set"
144 \bind "C-M-e" "font-emph"
145 # +: "Command-F" # Open a Find window
146 \bind "C-f" "dialog-show findreplace"
147 \bind "C-S-f" "dialog-show findreplaceadv"
148 # -: "Option-Command-F" # Move to the search field control
149 # +: "Command-G" # Find the next occurrence of the selection
150 \bind "C-g" "word-find-forward"
151 # +: "Shift-Command-G" # Find the previous occurrence of the selection
152 \bind "C-S-g" "word-find-backward"
153 # +: "Command-H" # Hide the windows of the currently running application
154 # +: "Option-Command-H" # Hide the windows of all other running applications
155 # -: "Command-I" # Italicize the selected text or toggle italic text on or off
156 \bind "C-i" "inset-toggle" # 'i' for Inset
157 \bind "C-M-i" "inset-settings"
158 # -: "Option-Command-I" # Display an inspector window
159 # -: "Command-J" # Scroll to a selection
160 \bind "C-k" "line-delete-forward"
161 # -: "Command-M" # Minimize the active window to the Dock
162 # -: "Option-Command-M" # Minimize all windows of the active application to the Dock
163 \bind "C-m" "math-mode"
164 \bind "C-S-M" "math-display"
165 \bind "C-M-n" "command-sequence math-display; math-number-toggle;"
166 # +: "Command-N" # Create a new document in the frontmost application
167 \bind "C-n" "buffer-new"
168 \bind "C-S-N" "dialog-show lyxfiles templates"
169 # +: "Command-O" # Display a dialog for choosing a document to open in the frontmost application
170 \bind "C-o" "file-open"
171 # -: "Shift-Command-P" # Display a dialog for specifying printing parameters (Page Setup)
172 \bind "C-S-P" "font-typewriter" # 'P' for Program
173 # +: "Command-Q" # Quit the frontmost application
174 \bind "C-q" "lyx-quit"
175 \bind "C-r" "buffer-view"
176 # +: "Command-S" # Save the active document
177 \bind "C-s" "buffer-write"
178 # +: "Shift-Command-S" # Display the Save As dialog
179 \bind "C-S-S" "buffer-write-as"
180 # -: "Command-T" # Display the Fonts window
181 \bind "C-t" "buffer-view pdf"
182 \bind "C-M-t" "command-alternatives master-buffer-view pdf; buffer-view pdf"
183 # -: "Option-Command-T" # Show or hide a toolbar
184 # -: "Command-U" # Underline the selected text or turn underlining on or off
185 \bind "C-u" "font-underline"
186 # +: "Command-V" # Paste the Clipboard contents at the insertion point
188 \bind "C-S-v" "clipboard-paste"
190 \bind "C-S-A-v" "clipboard-paste paragraph"
191 # -: "Option-Command-V" # Apply the style of one object to the selected object (Paste Style)
192 # -: "Option-Shift-Command-V" # Apply the style of the surrounding text to the inserted object (Paste and Match Style)
193 # -: "Control-Command-V" # Apply formatting settings to the selected object (Paste Ruler Command)
194 \bind "C-M-v" "primary-selection-paste"
195 # +: "Command-W" # Close the frontmost window - modern applications map this to close tab or window if it's the last one
196 \bind "C-w" "view-close"
197 # +: "Shift-Command-W" # Close a file and its associated windows - modern applications map this close window
198 \bind "C-S-w" "window-close"
199 # +: "Option-Command-W" # Close all windows in the application without quitting it
200 \bind "C-A-w" "buffer-close-all"
201 # +: "Command-X" # Remove the selection and store in the Clipboard
203 \bind "M-x" "command-execute"
204 # -: "Command-Z" # Undo previous command (some applications allow for multiple Undos)
206 # -: "Shift-Command-Z" # Redo previous command (some applications allow for multiple Redos)
208 # -: "Control-Right Arrow" # Move focus to another value or cell within a view, such as a table
209 # -: "Control-Left Arrow" # Move focus to another value or cell within a view, such as a table
210 # -: "Control-Down Arrow" # Move focus to another value or cell within a view, such as a table
211 # -: "Control-Up Arrow" # Move focus to another value or cell within a view, such as a table
212 # +: "Command-Right Arrow" # Move the text insertion point to the end of the current line
213 \bind "C-Right" "line-end"
214 # +: "Command-Left Arrow" # Move the text insertion point to the beginning of the current line
215 \bind "C-Left" "line-begin"
216 # +: "Command-Down Arrow" # Move the text insertion point to the end of the document
217 \bind "C-Down" "buffer-end"
218 \bind "M-A-Down" "inset-end"
219 # +: "Command-Up Arrow" # Move the text insertion point to the beginning of the document
220 \bind "C-Up" "buffer-begin"
221 \bind "M-A-Up" "inset-begin"
222 # +: "Shift-Command-Right Arrow" # Select text between the insertion point and the end of the current line (*)
223 \bind "S-C-Right" "line-end-select"
224 # +: "Shift-Command-Left Arrow" # Select text between the insertion point and the beginning of the current line (*)
225 \bind "S-C-Left" "line-begin-select"
226 # +: "Shift-Right Arrow" # Extend text selection one character to the right (*)
227 \bind "S-Right" "char-right-select"
228 # +: "Shift-Left Arrow" # Extend text selection one character to the left (*)
229 \bind "S-Left" "char-left-select"
230 # +: "Shift-Command-Up Arrow" # Select text between the insertion point and the beginning of the document (*)
231 \bind "S-C-Up" "buffer-begin-select"
232 # +: "Shift-Command-Down Arrow" # Select text between the insertion point and the end of the document (*)
233 \bind "S-C-Down" "buffer-end-select"
234 # +: "Shift-Up Arrow" # Extend text selection to the line above, to the nearest character boundary at the same horizontal location (*)
235 \bind "S-Up" "up-select"
236 # +: "Shift-Down Arrow" # Extend text selection to the line below, to the nearest character boundary at the same horizontal location (*)
237 \bind "S-Down" "down-select"
238 # +: "Shift-Option-Right Arrow" # Extend text selection to the end of the current word, then to the end of the following word if pressed again (*)
239 \bind "A-Right" "word-right"
240 \bind "S-A-Right" "word-right-select"
241 # +: "Shift-Option-Left Arrow" # Extend text selection to the beginning of the current word, then to the beginning of the following word if pressed again (*)
242 \bind "A-Left" "word-left"
243 \bind "S-A-Left" "word-left-select"
244 # +: "Shift-Option-Down Arrow" # Extend text selection to the end of the current paragraph, then to the end of the following paragraph if pressed again (*)
245 \bind "A-Down" "paragraph-down"
246 \bind "S-A-Down" "paragraph-down-select"
247 \bind "S-M-A-Down" "inset-end-select"
248 # +: "Shift-Option-Up Arrow" # Extend text selection to the beginning of the current paragraph, then to the beginning of the following paragraph if pressed again (*)
249 \bind "A-Up" "paragraph-up"
250 \bind "S-A-Up" "paragraph-up-select"
251 \bind "S-M-A-Up" "inset-begin-select"
252 # -: "Control-Space" # Toggle between the current and previous input sources
253 # -: "Option-Control-Space" # Toggle through all enabled input sources
254 # +: "Option-Command-esc" # Force Quit
256 # Additional commands
258 \bind "C-S-O" "font-strikeout"
259 \bind "C-S-T" "buffer-update pdf" # (pdflatex; was "ps")
260 \bind "C-S-R" "buffer-update"
261 \bind "C-M-S-T" "command-alternatives master-buffer-update pdf; buffer-update pdf"
262 \bind "C-M-S-D" "command-alternatives master-buffer-update dvi; buffer-update dvi"
264 \bind "C-S-E" "changes-track" # it's what MS Word uses
265 \bind "~S-M-quotedbl" "quote-insert inner"
266 \bind "~S-C-quotedbl" "quote-insert outer auto plain"
267 \bind "C-S-underscore" "command-alternatives math-macro-fold;specialchar-insert hyphenation"
268 \bind "C-M-minus" "specialchar-insert nobreakdash"
269 \bind "M-C-Right" "depth-increment"
270 \bind "M-C-Left" "depth-decrement"
271 \bind "C-S-L" "specialchar-insert ligature-break"
272 \bind "C-l" "ert-insert" # 'l' for LaTeX
273 \bind "C-S-I" "info-insert"
275 #bind "F1" "help" # Not yet implemented!
276 #bind "C-F1" "help-context" # Not yet implemented!
277 \bind "F2" "buffer-write force"
278 \bind "C-F4" "buffer-close"
279 \bind "C-A-Up" "scroll line up"
280 \bind "C-A-Down" "scroll line down"
281 \bind "C-A-Prior" "scroll page up"
282 \bind "C-A-Next" "scroll page down"
283 \bind "F7" "dialog-show spellchecker"
284 \bind "S-F7" "thesaurus-entry"
286 \bind "C-M-o" "dialog-show toc"
289 # Additional Motion group
292 \bind "C-~S-greater" "label-goto"
293 \bind "C-~S-less" "bookmark-goto 0"
296 # Additional Motion + select group
299 \bind "S-Prior" "screen-up-select"
300 \bind "S-Next" "screen-down-select"
301 \bind "C-Insert" "copy"
302 \bind "S-Insert" "paste"
303 \bind "S-Delete" "cut"
305 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
306 \bind "S-KP_Right" "char-right-select"
307 \bind "S-KP_Left" "char-left-select"
308 \bind "S-KP_Up" "up-select"
309 \bind "S-KP_Down" "down-select"
310 \bind "S-M-KP_Right" "word-right-select"
311 \bind "S-M-KP_Left" "word-left-select"
312 \bind "S-M-KP_Up" "paragraph-up-select"
313 \bind "S-M-KP_Down" "paragraph-down-select"
314 \bind "S-KP_Home" "line-begin-select"
315 \bind "S-KP_End" "line-end-select"
316 \bind "S-KP_Prior" "screen-up-select"
317 \bind "S-KP_Next" "screen-down-select"
318 \bind "S-C-KP_Home" "buffer-begin-select"
319 \bind "S-C-KP_End" "buffer-end-select"
320 \bind "S-C-KP_Prior" "buffer-move-previous"
321 \bind "S-C-KP_Next" "buffer-move-next"
322 \bind "C-KP_Insert" "copy"
323 \bind "S-KP_Insert" "paste"
324 \bind "S-KP_Delete" "cut"
330 \bind "C-~S-1" "bookmark-goto 1"
331 \bind "C-~S-2" "bookmark-goto 2"
332 \bind "C-~S-3" "bookmark-goto 3"
333 \bind "C-~S-4" "bookmark-goto 4"
334 \bind "C-~S-5" "bookmark-goto 5"
335 \bind "C-~S-6" "bookmark-goto 6"
336 \bind "C-~S-7" "bookmark-goto 7"
337 \bind "C-~S-8" "bookmark-goto 8"
338 \bind "C-~S-9" "bookmark-goto 9"
339 \bind "C-M-~S-1" "bookmark-save 1"
340 \bind "C-M-~S-2" "bookmark-save 2"
341 \bind "C-M-~S-3" "bookmark-save 3"
342 \bind "C-M-~S-4" "bookmark-save 4"
343 \bind "C-M-~S-5" "bookmark-save 5"
344 \bind "C-M-~S-6" "bookmark-save 6"
345 \bind "C-M-~S-7" "bookmark-save 7"
346 \bind "C-M-~S-8" "bookmark-save 8"
347 \bind "C-M-~S-9" "bookmark-save 9"
350 # Additional Edit group
353 \bind "A-Delete" "word-delete-forward confirm"
354 \bind "A-BackSpace" "word-delete-backward confirm"
355 \bind "M-Return" "paragraph-break inverse"
356 \bind "C-Return" "newline-insert newline"
357 \bind "C-S-Return" "newline-insert linebreak"
358 \bind "A-space" "command-alternatives math-space ; space-insert protected"
359 \bind "nobreakspace" "space-insert protected"
360 \bind "C-A-space" "space-insert normal"
361 \bind "S-A-space" "space-insert thin"
362 \bind "C-~S-slash" "specialchar-insert slash"
363 \bind "C-~S-period" "specialchar-insert end-of-sentence"
364 \bind "M-~S-period" "specialchar-insert dots"
365 \bind "Escape" "cancel"
366 \bind "C-M-Up" "command-alternatives outline-up; paragraph-move-up; tabular-feature move-row-up"
367 \bind "C-M-Down" "command-alternatives outline-down; paragraph-move-down; tabular-feature move-row-down"
368 \bind "C-M-Right" "tabular-feature move-column-right"
369 \bind "C-M-Left" "tabular-feature move-column-left"
370 #\bind "F9" "meta-prefix"
372 \bind "C-M-F" "ui-toggle fullscreen"
373 \bind "C-A-F" "forward-search"
375 # Include menu and math bindings
377 \bind_file menus.bind
379 \bind_file latinkeys.bind
380 \bind_file cyrkeys.bind
381 \bind_file greekkeys.bind