4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
8 # author Lars Gullik Bjønnes
9 # author Jean-Marc Lasgouttes
10 # author Angus Leeming
12 # author Jürgen Spitzmüller
15 # author Andrew Zabolotny
17 # Full author contact details are available in file CREDITS.
19 # This is the CUA (Common User Access) flavour bind file, based on
20 # bindings found in the Windows, Mac and Motif world.
22 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
23 # with every new install of LyX and your changes will be lost.
24 # Instead, customize a copy of this file placed in
25 # ~/.lyx/bind/cua.bind
39 \bind "C-n" "buffer-new"
40 \bind "C-S-N" "buffer-new-template"
41 \bind "C-o" "file-open"
42 \bind "C-w" "view-close"
43 \bind "C-s" "buffer-write"
44 \bind "C-S-S" "buffer-write-as"
45 \bind "C-r" "buffer-view"
46 \bind "C-d" "buffer-view dvi" # 'd' for dvi
47 \bind "C-t" "buffer-view ps"
48 \bind "C-M-r" "command-alternatives master-buffer-view; buffer-view"
49 \bind "C-M-t" "command-alternatives master-buffer-view ps; buffer-view ps"
50 \bind "C-M-d" "command-alternatives master-buffer-view dvi; buffer-view dvi"
51 \bind "C-S-R" "buffer-update"
52 \bind "C-S-D" "buffer-update dvi" # 'd' for dvi
53 \bind "C-S-T" "buffer-update ps"
54 \bind "C-M-S-t" "command-alternatives master-buffer-update ps; buffer-update ps"
55 \bind "C-M-S-d" "command-alternatives master-buffer-update dvi; buffer-update dvi"
56 \bind "C-q" "lyx-quit"
57 \bind "C-Next" "buffer-next"
58 \bind "C-Tab" "buffer-next"
59 \bind "C-Prior" "buffer-previous"
60 \bind "C-S-BackTab" "buffer-previous"
62 \bind "C-M-b" "font-bold"
63 \bind "C-b" "font-boldsymbol"
64 \bind "C-e" "font-emph"
65 # used below for line-delete-forward
66 #\bind "C-k" "font-noun" # 'k' for capitals
67 \bind "C-u" "font-underline"
68 \bind "C-S-P" "font-typewriter" # 'P' for Program
69 \bind "C-S-O" "font-strikeout"
71 \bind "C-m" "math-mode"
72 \bind "C-S-M" "math-display"
73 \bind "C-M-n" "command-sequence math-display; math-number-toggle;"
75 \bind "C-f" "dialog-show findreplace"
76 \bind "C-S-f" "dialog-show findreplaceadv"
77 \bind "C-i" "inset-toggle" # 'i' for Inset
78 \bind "C-M-i" "inset-settings"
83 \bind "C-S-v" "clipboard-paste"
84 \bind "C-M-v" "primary-selection-paste"
90 \bind "C-M-a" "command-sequence buffer-begin ; buffer-end-select" # select all
91 \bind "C-a" "inset-select-all"
93 \bind "C-S-E" "changes-track" # it's what MS Word uses
94 \bind "~S-M-quotedbl" "quote-insert inner"
95 \bind "~S-C-quotedbl" "quote-insert outer auto plain"
96 \bind "C-minus" "specialchar-insert hyphenation"
97 \bind "C-S-underscore" "math-macro-fold"
98 \bind "C-M-minus" "specialchar-insert nobreakdash"
99 \bind "M-S-Right" "depth-increment"
100 \bind "M-S-Left" "depth-decrement"
101 \bind "C-S-L" "specialchar-insert ligature-break"
102 \bind "C-~S-slash" "specialchar-insert slash"
103 \bind "C-l" "ert-insert" # 'l' for LaTeX
104 \bind "C-S-I" "info-insert"
106 #bind "F1" "help" # Not yet implemented!
107 #bind "C-F1" "help-context" # Not yet implemented!
108 \bind "F2" "buffer-write"
109 \bind "F3" "word-find"
110 \bind "C-F4" "buffer-close"
111 \bind "M-F4" "lyx-quit"
112 \bind "F5" "screen-recenter"
113 \bind "C-M-Up" "scroll line up"
114 \bind "C-M-Down" "scroll line down"
115 \bind "C-M-Prior" "scroll page up"
116 \bind "C-M-Next" "scroll page down"
117 \bind "C-F6" "buffer-next"
118 \bind "C-S-F6" "buffer-previous"
119 \bind "F7" "dialog-show spellchecker"
120 \bind "S-F7" "thesaurus-entry"
122 \bind "M-x" "command-execute"
123 \bind "C-M-o" "dialog-show toc"
125 \bind "F11" "ui-toggle fullscreen"
127 \bind "M-0" "buffer-zoom"
128 \bind "M-equal" "buffer-zoom-in"
129 \bind "M-plus" "buffer-zoom-in"
130 \bind "M-minus" "buffer-zoom-out"
136 \bind "M-Up" "command-alternatives outline-up; paragraph-move-up; tabular-feature move-row-up"
137 \bind "M-Down" "command-alternatives outline-down; paragraph-move-down; tabular-feature move-row-down"
138 \bind "M-Right" "tabular-feature move-column-right"
139 \bind "M-Left" "tabular-feature move-column-left"
140 \bind "C-Right" "word-right"
141 \bind "C-Left" "word-left"
142 \bind "C-Up" "paragraph-up"
143 \bind "C-Down" "paragraph-down"
144 \bind "C-Home" "buffer-begin"
145 \bind "C-End" "buffer-end"
146 \bind "M-C-Home" "inset-begin"
147 \bind "M-C-End" "inset-end"
149 \bind "C-~S-greater" "label-goto"
150 \bind "C-~S-less" "bookmark-goto 0"
153 # Motion + select group
156 \bind "S-Right" "char-right-select"
157 \bind "S-Left" "char-left-select"
158 \bind "S-Up" "up-select"
159 \bind "S-Down" "down-select"
160 \bind "S-C-Right" "word-right-select"
161 \bind "S-C-Left" "word-left-select"
162 \bind "S-C-Up" "paragraph-up-select"
163 \bind "S-C-Down" "paragraph-down-select"
164 \bind "S-Home" "line-begin-select"
165 \bind "S-End" "line-end-select"
166 \bind "S-Prior" "screen-up-select"
167 \bind "S-Next" "screen-down-select"
168 \bind "S-C-Home" "buffer-begin-select"
169 \bind "S-C-End" "buffer-end-select"
170 \bind "S-M-C-Home" "inset-begin-select"
171 \bind "S-M-C-End" "inset-end-select"
172 \bind "C-Insert" "copy"
173 \bind "S-Insert" "paste"
174 \bind "S-Delete" "cut"
176 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
177 \bind "S-KP_Right" "char-right-select"
178 \bind "S-KP_Left" "char-left-select"
179 \bind "S-KP_Up" "up-select"
180 \bind "S-KP_Down" "down-select"
181 \bind "S-C-KP_Right" "word-right-select"
182 \bind "S-C-KP_Left" "word-left-select"
183 \bind "S-C-KP_Up" "paragraph-up-select"
184 \bind "S-C-KP_Down" "paragraph-down-select"
185 \bind "S-KP_Home" "line-begin-select"
186 \bind "S-KP_End" "line-end-select"
187 \bind "S-KP_Prior" "screen-up-select"
188 \bind "S-KP_Next" "screen-down-select"
189 \bind "S-C-KP_Home" "buffer-begin-select"
190 \bind "S-C-KP_End" "buffer-end-select"
191 \bind "S-C-KP_Prior" "buffer-move-previous"
192 \bind "S-C-KP_Next" "buffer-move-next"
193 \bind "C-KP_Insert" "copy"
194 \bind "S-KP_Insert" "paste"
195 \bind "S-KP_Delete" "cut"
201 \bind "C-~S-1" "bookmark-goto 1"
202 \bind "C-~S-2" "bookmark-goto 2"
203 \bind "C-~S-3" "bookmark-goto 3"
204 \bind "C-~S-4" "bookmark-goto 4"
205 \bind "C-~S-5" "bookmark-goto 5"
206 \bind "C-~S-6" "bookmark-goto 6"
207 \bind "C-~S-7" "bookmark-goto 7"
208 \bind "C-~S-8" "bookmark-goto 8"
209 \bind "C-~S-9" "bookmark-goto 9"
210 \bind "S-F1" "bookmark-save 1"
211 \bind "S-F2" "bookmark-save 2"
212 \bind "S-F3" "bookmark-save 3"
213 \bind "S-F4" "bookmark-save 4"
214 \bind "S-F5" "bookmark-save 5"
215 \bind "S-F6" "bookmark-save 6"
216 \bind "S-F7" "bookmark-save 7"
217 \bind "S-F8" "bookmark-save 8"
218 \bind "S-F9" "bookmark-save 9"
225 \bind "C-Delete" "word-delete-forward"
226 \bind "C-BackSpace" "word-delete-backward"
227 \bind "M-Return" "paragraph-break inverse"
228 \bind "C-Return" "newline-insert newline"
229 \bind "C-S-Return" "newline-insert linebreak"
230 \bind "C-k" "line-delete-forward"
231 \bind "C-space" "command-alternatives math-space ; space-insert protected"
232 \bind "nobreakspace" "space-insert protected"
233 \bind "C-M-space" "space-insert normal"
234 \bind "S-C-space" "space-insert thin"
235 \bind "C-period" "specialchar-insert end-of-sentence"
236 \bind "M-period" "specialchar-insert dots"
237 \bind "Escape" "cancel"
238 \bind "F9" "meta-prefix"
240 # Include menu and math bindings
242 \bind_file menus.bind
244 \bind_file latinkeys.bind
245 \bind_file cyrkeys.bind
246 \bind_file greekkeys.bind