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 1.6.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
30 \bind "C-n" "buffer-new"
31 \bind "C-S-N" "buffer-new-template"
32 \bind "C-o" "file-open"
33 \bind "C-w" "buffer-close"
34 \bind "C-s" "buffer-write"
35 \bind "C-S-S" "buffer-write-as"
36 \bind "C-p" "dialog-show print"
37 \bind "C-d" "buffer-view dvi" # 'd' for dvi
38 \bind "C-t" "buffer-view pdf"
39 \bind "C-M-t" "master-buffer-view pdf"
40 \bind "C-M-d" "master-buffer-view dvi"
41 \bind "C-S-D" "buffer-update dvi" # 'd' for dvi
42 \bind "C-S-T" "buffer-update pdf" # (pdflatex; was "ps")
43 \bind "C-M-S-T" "master-buffer-update pdf"
44 \bind "C-M-S-D" "master-buffer-update dvi"
45 \bind "C-q" "lyx-quit"
46 \bind "M-Tab" "buffer-next"
47 \bind "M-S-BackTab" "buffer-previous"
49 \bind "C-M-b" "font-boldsymbol"
50 \bind "C-b" "font-bold"
51 \bind "C-e" "font-emph"
52 # used below for line-delete-forward
53 #\bind "C-k" "font-noun" # 'k' for capitals
54 \bind "C-u" "font-underline"
55 \bind "C-S-P" "font-typewriter" # 'P' for Program
56 \bind "C-S-O" "font-strikeout"
58 \bind "C-m" "math-mode"
59 \bind "C-S-M" "math-display"
60 \bind "C-S-r" "regexp-mode"
61 \bind "C-M-n" "command-sequence math-display; math-number-toggle;"
63 \bind "C-f" "dialog-show findreplace"
64 \bind "C-S-f" "dialog-show findreplaceadv"
65 \bind "C-i" "inset-toggle" # 'i' for Inset
70 \bind "C-S-v" "clipboard-paste"
71 \bind "C-M-v" "primary-selection-paste"
76 \bind "C-a" "command-sequence buffer-begin ; buffer-end-select" # select all
77 \bind "C-M-a" "inset-select-all"
79 \bind "C-S-E" "changes-track" # it's what MS Word uses
80 \bind "~S-M-quotedbl" "quote-insert single"
81 \bind "~S-C-quotedbl" "self-insert \""
82 \bind "C-minus" "command-alternatives math-macro-fold;specialchar-insert hyphenation"
83 \bind "C-M-minus" "specialchar-insert nobreakdash"
84 \bind "M-C-Right" "depth-increment"
85 \bind "M-C-Left" "depth-decrement"
86 \bind "C-S-L" "specialchar-insert ligature-break"
87 \bind "C-l" "ert-insert" # 'l' for LaTeX
88 \bind "C-S-I" "info-insert"
90 #bind "F1" "help" # Not yet implemented!
91 #bind "C-F1" "help-context" # Not yet implemented!
92 \bind "F2" "buffer-write"
93 \bind "C-g" "word-find"
94 \bind "C-F4" "buffer-close"
95 \bind "F5" "screen-recenter"
96 \bind "C-M-Up" "scroll line up"
97 \bind "C-M-Down" "scroll line down"
98 \bind "C-M-Prior" "scroll page up"
99 \bind "C-M-Next" "scroll page down"
100 \bind "F7" "dialog-show spellchecker"
101 \bind "S-F7" "thesaurus-entry"
103 \bind "M-x" "command-execute"
105 \bind "M-equal" "buffer-zoom-in"
106 \bind "M-plus" "buffer-zoom-in"
107 \bind "M-minus" "buffer-zoom-out"
113 \bind "M-Right" "word-right"
114 \bind "M-Left" "word-left"
115 \bind "M-Up" "paragraph-up"
116 \bind "M-Down" "paragraph-down"
117 \bind "C-Up" "buffer-begin"
118 \bind "C-Down" "buffer-end"
119 \bind "M-C-Up" "inset-begin"
120 \bind "M-C-Down" "inset-end"
121 \bind "C-Right" "line-end"
122 \bind "C-Left" "line-begin"
124 \bind "C-~S-greater" "label-goto"
125 \bind "C-~S-less" "bookmark-goto 0"
129 # Motion + select group
132 \bind "S-Right" "char-right-select"
133 \bind "S-Left" "char-left-select"
134 \bind "S-Up" "up-select"
135 \bind "S-Down" "down-select"
136 \bind "S-M-Right" "word-right-select"
137 \bind "S-M-Left" "word-left-select"
138 \bind "S-M-Up" "paragraph-up-select"
139 \bind "S-M-Down" "paragraph-down-select"
140 \bind "S-C-Left" "line-begin-select"
141 \bind "S-C-Right" "line-end-select"
142 \bind "S-Prior" "screen-up-select"
143 \bind "S-Next" "screen-down-select"
144 \bind "S-C-Up" "buffer-begin-select"
145 \bind "S-C-Down" "buffer-end-select"
146 \bind "S-M-C-Up" "inset-begin-select"
147 \bind "S-M-C-Down" "inset-end-select"
148 \bind "C-Insert" "copy"
149 \bind "S-Insert" "paste"
150 \bind "S-Delete" "cut"
152 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
153 \bind "S-KP_Right" "char-right-select"
154 \bind "S-KP_Left" "char-left-select"
155 \bind "S-KP_Up" "up-select"
156 \bind "S-KP_Down" "down-select"
157 \bind "S-M-KP_Right" "word-right-select"
158 \bind "S-M-KP_Left" "word-left-select"
159 \bind "S-M-KP_Up" "paragraph-up-select"
160 \bind "S-M-KP_Down" "paragraph-down-select"
161 \bind "S-KP_Home" "line-begin-select"
162 \bind "S-KP_End" "line-end-select"
163 \bind "S-KP_Prior" "screen-up-select"
164 \bind "S-KP_Next" "screen-down-select"
165 \bind "S-C-KP_Home" "buffer-begin-select"
166 \bind "S-C-KP_End" "buffer-end-select"
167 \bind "S-C-KP_Prior" "buffer-begin-select"
168 \bind "S-C-KP_Next" "buffer-end-select"
169 \bind "C-KP_Insert" "copy"
170 \bind "S-KP_Insert" "paste"
180 \bind "C-~S-1" "bookmark-goto 1"
181 \bind "C-~S-2" "bookmark-goto 2"
182 \bind "C-~S-3" "bookmark-goto 3"
183 \bind "C-~S-4" "bookmark-goto 4"
184 \bind "C-~S-5" "bookmark-goto 5"
185 \bind "C-~S-6" "bookmark-goto 6"
186 \bind "C-~S-7" "bookmark-goto 7"
187 \bind "C-~S-8" "bookmark-goto 8"
188 \bind "C-~S-9" "bookmark-goto 9"
189 \bind "C-M-~S-1" "bookmark-save 1"
190 \bind "C-M-~S-2" "bookmark-save 2"
191 \bind "C-M-~S-3" "bookmark-save 3"
192 \bind "C-M-~S-4" "bookmark-save 4"
193 \bind "C-M-~S-5" "bookmark-save 5"
194 \bind "C-M-~S-6" "bookmark-save 6"
195 \bind "C-M-~S-7" "bookmark-save 7"
196 \bind "C-M-~S-8" "bookmark-save 8"
197 \bind "C-M-~S-9" "bookmark-save 9"
204 \bind "M-Delete" "word-delete-forward"
205 \bind "M-BackSpace" "word-delete-backward"
206 \bind "M-Return" "break-paragraph inverse"
207 \bind "C-Return" "newline-insert newline"
208 \bind "C-S-Return" "newline-insert linebreak"
209 \bind "C-k" "line-delete-forward"
210 \bind "M-space" "space-insert protected"
211 \bind "nobreakspace" "space-insert protected"
212 \bind "C-M-space" "space-insert normal"
213 \bind "S-M-space" "space-insert thin"
214 \bind "C-~S-slash" "specialchar-insert slash"
215 \bind "C-period" "specialchar-insert end-of-sentence-period"
216 \bind "M-period" "specialchar-insert dots"
217 \bind "Escape" "cancel"
218 \bind "C-M-Up" "paragraph-move-up"
219 \bind "C-M-Down" "paragraph-move-down"
220 #\bind "F9" "meta-prefix"
225 \bind "C-comma" "dialog-show prefs"
228 # Include menu and math bindings
230 \bind_file menus.bind
232 \bind_file latinkeys.bind
233 \bind_file cyrkeys.bind
234 \bind_file greekkeys.bind