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