]> git.lyx.org Git - lyx.git/blob - lib/bind/cua.bind
[3432] Adds Ctrl-Tab and Ctrl-Shift-Tab as bindings for buffer-next and buffer-previous.
[lyx.git] / lib / bind / cua.bind
1 # -*- text -*-
2
3 # file cua.bind
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Asger Alstrup
8 # author Lars Gullik Bjnnes
9 # author Jean-Marc Lasgouttes
10 # author Angus Leeming
11 # author John Levon
12 # author Jrgen Spitzmller
13 # author Dekel Tsur
14 # author Jrgen Vigna
15 # author Andrew Zabolotny
16
17 # Full author contact details are available in file CREDITS.
18
19 # This is the CUA (Common User Access) flavour bind file, based on
20 # bindings found in the Windows, Mac and Motif world.
21
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
26 #
27 # Happy tuning!
28
29 # Free bindings:
30
31 #\bind "C-h"
32 #\bind "C-j"
33
34
35 ###
36
37 \bind "C-n"                     "buffer-new"
38 \bind "C-S-N"                   "buffer-new-template"
39 \bind "C-o"                     "file-open"
40 \bind "C-r"                     "buffer-reload"
41 \bind "C-w"                     "buffer-close"
42 \bind "C-s"                     "buffer-write"
43 \bind "C-S-S"                   "buffer-write-as"
44 \bind "C-p"                     "dialog-show print"
45 \bind "C-d"                     "buffer-view dvi"       # 'd' for dvi
46 \bind "C-t"                     "buffer-view ps"
47 \bind "C-S-D"                   "buffer-update dvi"     # 'd' for dvi
48 \bind "C-S-T"                   "buffer-update ps"
49 \bind "C-q"                     "lyx-quit"
50 \bind "C-Next"                  "buffer-next"
51 \bind "C-Tab"                   "buffer-next"
52 \bind "C-Prior"                 "buffer-previous"
53 \bind "C-S-Tab"   "buffer-previous"
54
55 \bind "C-b"                     "font-bold"
56 \bind "C-e"                     "font-emph"
57 # used below for line-delete-forward
58 #\bind "C-k"                    "font-noun"             # 'k' for capitals
59 \bind "C-u"                     "font-underline"
60 \bind "C-S-P"                   "font-code"             # 'P' for program
61
62 \bind "C-m"                     "math-mode"
63 \bind "C-S-M"                   "math-display"
64
65 \bind "C-f"                     "dialog-show findreplace"
66 \bind "C-g"                     "error-next"
67 \bind "C-i"                     "next-inset-toggle"             # 'i' for Inset
68
69 \bind "C-c"                     "copy"
70 \bind "C-x"                     "cut"
71 \bind "C-v"                     "paste"
72 \bind "C-S-v"                   "clipboard-paste"
73 \bind "C-M-v"                   "primary-selection-paste"
74
75 \bind "C-z"                     "undo"
76 \bind "C-y"                     "redo"
77 \bind "C-S-Z"                   "redo"
78
79 \bind "C-a"                     "command-sequence buffer-begin ; buffer-end-select"   # select all
80
81 \bind "C-S-E"                   "changes-track"  # it's what MS Word uses
82 \bind "~S-M-quotedbl"           "quote-insert single"
83 \bind "~S-C-quotedbl"           "self-insert \""
84 \bind "C-minus"                 "hyphenation-point-insert"
85 \bind "M-S-Right"               "depth-increment"
86 \bind "M-S-Left"                "depth-decrement"
87 \bind "C-S-L"                   "ligature-break-insert"
88 \bind "C-l"                     "ert-insert"            # 'l' for LaTeX
89
90 #bind "F1"                      "help"                  # Not yet implemented!
91 #bind "C-F1"                    "help-context"          # Not yet implemented!
92 \bind "F2"                      "buffer-write"
93 \bind "F3"                      "file-open"
94 \bind "C-F4"                    "buffer-close"
95 \bind "M-F4"                    "lyx-quit"
96 \bind "F5"                      "screen-recenter"
97 \bind "C-F6"                    "buffer-next"
98 \bind "C-S-F6"                  "buffer-previous"
99 \bind "F7"                      "dialog-show spellchecker"
100 \bind "S-F7"                    "thesaurus-entry"
101
102 \bind "M-x"                     "command-execute"
103
104 #
105 # Motion group
106 #
107
108 \bind "M-Up"                    "paragraph-move-up"
109 \bind "M-Down"                  "paragraph-move-down"
110 \bind "C-Right"                 "word-forward"
111 \bind "C-Left"                  "word-backward"
112 \bind "C-Up"                    "paragraph-up"
113 \bind "C-Down"                  "paragraph-down"
114 \bind "C-Home"                  "buffer-begin"
115 \bind "C-End"                   "buffer-end"
116
117 \bind "C-~S-greater"            "label-goto"
118 \bind "C-~S-less"               "bookmark-goto 0"
119
120
121 #
122 # Motion + select group
123 #
124
125 \bind "S-Right"                 "forward-select"
126 \bind "S-Left"                  "backward-select"
127 \bind "S-Up"                    "up-select"
128 \bind "S-Down"                  "down-select"
129 \bind "S-C-Right"               "word-forward-select"
130 \bind "S-C-Left"                "word-backward-select"
131 \bind "S-C-Up"                  "paragraph-up-select"
132 \bind "S-C-Down"                "paragraph-down-select"
133 \bind "S-Home"                  "line-begin-select"
134 \bind "S-End"                   "line-end-select"
135 \bind "S-Prior"                 "screen-up-select"
136 \bind "S-Next"                  "screen-down-select"
137 \bind "S-C-Home"                "buffer-begin-select"
138 \bind "S-C-End"                 "buffer-end-select"
139 \bind "C-Insert"                "copy"
140 \bind "S-Insert"                "paste"
141 \bind "S-Delete"                "cut"
142
143 # Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
144 \bind "S-KP_Right"              "forward-select"
145 \bind "S-KP_Left"               "backward-select"
146 \bind "S-KP_Up"                 "up-select"
147 \bind "S-KP_Down"               "down-select"
148 \bind "S-C-KP_Right"            "word-forward-select"
149 \bind "S-C-KP_Left"             "word-backward-select"
150 \bind "S-C-KP_Up"               "paragraph-up-select"
151 \bind "S-C-KP_Down"             "paragraph-down-select"
152 \bind "S-KP_Home"               "line-begin-select"
153 \bind "S-KP_End"                "line-end-select"
154 \bind "S-KP_Prior"              "screen-up-select"
155 \bind "S-KP_Next"               "screen-down-select"
156 \bind "S-C-KP_Home"             "buffer-begin-select"
157 \bind "S-C-KP_End"              "buffer-end-select"
158 \bind "S-C-KP_Prior"            "buffer-begin-select"
159 \bind "S-C-KP_Next"             "buffer-end-select"
160 \bind "C-KP_Insert"             "copy"
161 \bind "S-KP_Insert"             "paste"
162 \bind "S-KP_Delete"             "cut"
163
164 #
165 # bookmarks
166 #
167
168 \bind "C-~S-1"                  "bookmark-goto 1"
169 \bind "C-~S-2"                  "bookmark-goto 2"
170 \bind "C-~S-3"                  "bookmark-goto 3"
171 \bind "C-~S-4"                  "bookmark-goto 4"
172 \bind "C-~S-5"                  "bookmark-goto 5"
173 \bind "C-~S-6"                  "bookmark-goto 6"
174 \bind "C-~S-7"                  "bookmark-goto 7"
175 \bind "C-~S-8"                  "bookmark-goto 8"
176 \bind "C-~S-9"                  "bookmark-goto 9"
177 \bind "C-M-~S-1"                "bookmark-save 1"
178 \bind "C-M-~S-2"                "bookmark-save 2"
179 \bind "C-M-~S-3"                "bookmark-save 3"
180 \bind "C-M-~S-4"                "bookmark-save 4"
181 \bind "C-M-~S-5"                "bookmark-save 5"
182 \bind "C-M-~S-6"                "bookmark-save 6"
183 \bind "C-M-~S-7"                "bookmark-save 7"
184 \bind "C-M-~S-8"                "bookmark-save 8"
185 \bind "C-M-~S-9"                "bookmark-save 9"
186
187
188 #
189 # Edit group
190 #
191
192 \bind "C-Delete"                "word-delete-forward"
193 \bind "C-BackSpace"             "word-delete-backward"
194 \bind "M-Return"                "break-paragraph-keep-layout"
195 \bind "C-Return"                "break-line"
196 \bind "C-k"                     "line-delete-forward"
197 \bind "C-space"                 "space-insert protected"
198 \bind "C-M-space"                       "space-insert normal"
199 \bind "S-C-space"                       "space-insert thin"
200 \bind "C-period"                "end-of-sentence-period-insert"
201 \bind "M-period"                "dots-insert"
202 \bind "Escape"                  "cancel"
203 \bind "F9"                      "meta-prefix"
204
205 # Include menu and math bindings
206
207 \bind_file menus.bind
208 \bind_file math.bind
209 \bind_file latinkeys.bind
210 \bind_file cyrkeys.bind
211 \bind_file greekkeys.bind