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
78 \bind "C-S-E" "changes-track" # it's what MS Word uses
79 \bind "~S-M-quotedbl" "quote-insert single"
80 \bind "~S-C-quotedbl" "self-insert \""
81 \bind "C-minus" "command-alternatives math-macro-fold;specialchar-insert hyphenation"
82 \bind "C-M-minus" "specialchar-insert nobreakdash"
83 \bind "M-C-Right" "depth-increment"
84 \bind "M-C-Left" "depth-decrement"
85 \bind "C-S-L" "specialchar-insert ligature-break"
86 \bind "C-l" "ert-insert" # 'l' for LaTeX
87 \bind "C-S-I" "info-insert"
89 #bind "F1" "help" # Not yet implemented!
90 #bind "C-F1" "help-context" # Not yet implemented!
91 \bind "F2" "buffer-write"
92 \bind "C-g" "word-find"
93 \bind "C-F4" "buffer-close"
94 \bind "F5" "screen-recenter"
95 \bind "C-M-Up" "scroll line up"
96 \bind "C-M-Down" "scroll line down"
97 \bind "C-M-Prior" "scroll page up"
98 \bind "C-M-Next" "scroll page down"
99 \bind "F7" "dialog-show spellchecker"
100 \bind "S-F7" "thesaurus-entry"
102 \bind "M-x" "command-execute"
104 \bind "M-equal" "buffer-zoom-in"
105 \bind "M-plus" "buffer-zoom-in"
106 \bind "M-minus" "buffer-zoom-out"
112 \bind "M-Right" "word-right"
113 \bind "M-Left" "word-left"
114 \bind "M-Up" "paragraph-up"
115 \bind "M-Down" "paragraph-down"
116 \bind "C-Up" "buffer-begin"
117 \bind "C-Down" "buffer-end"
118 \bind "C-Right" "line-end"
119 \bind "C-Left" "line-begin"
121 \bind "C-~S-greater" "label-goto"
122 \bind "C-~S-less" "bookmark-goto 0"
126 # Motion + select group
129 \bind "S-Right" "char-right-select"
130 \bind "S-Left" "char-left-select"
131 \bind "S-Up" "up-select"
132 \bind "S-Down" "down-select"
133 \bind "S-M-Right" "word-right-select"
134 \bind "S-M-Left" "word-left-select"
135 \bind "S-M-Up" "paragraph-up-select"
136 \bind "S-M-Down" "paragraph-down-select"
137 \bind "S-C-Left" "line-begin-select"
138 \bind "S-C-Right" "line-end-select"
139 \bind "S-Prior" "screen-up-select"
140 \bind "S-Next" "screen-down-select"
141 \bind "S-C-Up" "buffer-begin-select"
142 \bind "S-C-Down" "buffer-end-select"
143 \bind "C-Insert" "copy"
144 \bind "S-Insert" "paste"
145 \bind "S-Delete" "cut"
147 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
148 \bind "S-KP_Right" "char-right-select"
149 \bind "S-KP_Left" "char-left-select"
150 \bind "S-KP_Up" "up-select"
151 \bind "S-KP_Down" "down-select"
152 \bind "S-M-KP_Right" "word-right-select"
153 \bind "S-M-KP_Left" "word-left-select"
154 \bind "S-M-KP_Up" "paragraph-up-select"
155 \bind "S-M-KP_Down" "paragraph-down-select"
156 \bind "S-KP_Home" "line-begin-select"
157 \bind "S-KP_End" "line-end-select"
158 \bind "S-KP_Prior" "screen-up-select"
159 \bind "S-KP_Next" "screen-down-select"
160 \bind "S-C-KP_Home" "buffer-begin-select"
161 \bind "S-C-KP_End" "buffer-end-select"
162 \bind "S-C-KP_Prior" "buffer-begin-select"
163 \bind "S-C-KP_Next" "buffer-end-select"
164 \bind "C-KP_Insert" "copy"
165 \bind "S-KP_Insert" "paste"
175 \bind "C-~S-1" "bookmark-goto 1"
176 \bind "C-~S-2" "bookmark-goto 2"
177 \bind "C-~S-3" "bookmark-goto 3"
178 \bind "C-~S-4" "bookmark-goto 4"
179 \bind "C-~S-5" "bookmark-goto 5"
180 \bind "C-~S-6" "bookmark-goto 6"
181 \bind "C-~S-7" "bookmark-goto 7"
182 \bind "C-~S-8" "bookmark-goto 8"
183 \bind "C-~S-9" "bookmark-goto 9"
184 \bind "C-M-~S-1" "bookmark-save 1"
185 \bind "C-M-~S-2" "bookmark-save 2"
186 \bind "C-M-~S-3" "bookmark-save 3"
187 \bind "C-M-~S-4" "bookmark-save 4"
188 \bind "C-M-~S-5" "bookmark-save 5"
189 \bind "C-M-~S-6" "bookmark-save 6"
190 \bind "C-M-~S-7" "bookmark-save 7"
191 \bind "C-M-~S-8" "bookmark-save 8"
192 \bind "C-M-~S-9" "bookmark-save 9"
199 \bind "M-Delete" "word-delete-forward"
200 \bind "M-BackSpace" "word-delete-backward"
201 \bind "M-Return" "break-paragraph inverse"
202 \bind "C-Return" "newline-insert newline"
203 \bind "C-S-Return" "newline-insert linebreak"
204 \bind "C-k" "line-delete-forward"
205 \bind "M-space" "space-insert protected"
206 \bind "nobreakspace" "space-insert protected"
207 \bind "C-M-space" "space-insert normal"
208 \bind "S-M-space" "space-insert thin"
209 \bind "C-~S-slash" "specialchar-insert slash"
210 \bind "C-period" "specialchar-insert end-of-sentence-period"
211 \bind "M-period" "specialchar-insert dots"
212 \bind "Escape" "cancel"
213 \bind "C-M-Up" "paragraph-move-up"
214 \bind "C-M-Down" "paragraph-move-down"
215 #\bind "F9" "meta-prefix"
220 \bind "C-comma" "dialog-show prefs"
223 # Include menu and math bindings
225 \bind_file menus.bind
227 \bind_file latinkeys.bind
228 \bind_file cyrkeys.bind
229 \bind_file greekkeys.bind