author | Claus Gittinger <cg@exept.de> |
Sun, 27 Jan 2008 17:27:06 +0100 | |
changeset 922 | 40de9cc98570 |
parent 918 | 274606432740 |
child 923 | ebeccd425b49 |
permissions | -rw-r--r-- |
41 | 1 |
"* |
609 | 2 |
* Encoding: iso8859-1 |
3 |
* |
|
41 | 4 |
* $Header$ |
5 |
* |
|
399 | 6 |
* MIMEType: application/x-smalltalk-source |
7 |
* |
|
209 | 8 |
* ST/X startup configuration file: |
9 |
* |
|
41 | 10 |
* sample keyboard.rc - file |
11 |
* |
|
719 | 12 |
* this file defines some mappings for common function keys. |
13 |
* These definitions used to be in 'private.rc', |
|
41 | 14 |
* but have been extracted into this separate file to allow easier |
15 |
* sharing of rc files (users having different private files, but want |
|
54 | 16 |
* to use the same keyboard mappings / keyboard macros) |
41 | 17 |
* |
719 | 18 |
* A copy of this file can reside in $home/.smalltalk/keyboard.rc or |
54 | 19 |
* in the current directory. |
20 |
* |
|
719 | 21 |
* These are my personal preferrences which may not be |
402 | 22 |
* correct for your environment. |
23 |
* |
|
609 | 24 |
* WARNING: |
402 | 25 |
* please keep the expressions below free from manipulating |
26 |
* global state - all that should be done here is to set up the current |
|
27 |
* screens keyboard map. |
|
28 |
* Reason: in multihead applications, this will be consulted for each |
|
29 |
* new display screen. |
|
41 | 30 |
*" |
31 |
||
719 | 32 |
Smalltalk fileIn:'keyboardMacros.rc'. |
86 | 33 |
! |
34 |
||
92 | 35 |
"* |
36 |
* key bindings common to all display types |
|
37 |
* use event monitor, to see what the Xserver sends us; |
|
38 |
* put display-specific stuff into a d_hostName.rc file. |
|
39 |
*" |
|
402 | 40 |
|map screen| |
86 | 41 |
|
402 | 42 |
screen := Screen current. |
43 |
map := screen keyboardMap. |
|
86 | 44 |
|
402 | 45 |
(screen serverVendor startsWith:'DECWINDOWS') ifTrue:[ |
252
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
46 |
"/ DEC has messed up the ESC key completely. |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
47 |
"/ map ALT-` onto ESC for our convenience. |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
48 |
"/ |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
49 |
"/ also, the right compose key (comes in as 'AltMulti_key' or |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
50 |
"/ 'CtrlMulti_key' depending on the keyboard) is mapped |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
51 |
"/ to 'Compose'. |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
52 |
map bindValue:#Escape to:#'Cmd`'. |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
53 |
map bindValue:#Compose to:#'AltMulti_key'. "/ the right compose key |
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
54 |
|
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
55 |
map bindValue:#Return to:#'KP_Enter'. "/ the keypads return key |
609 | 56 |
]. |
252
5d4a68556e45
ESC & Compose keys on DEC keyboards
Claus Gittinger <cg@exept.de>
parents:
209
diff
changeset
|
57 |
|
609 | 58 |
"/ map bindValue:#'Hardcopy' to:#'Super_R'. |
59 |
map bindValue:#'Alt' to:#'Super_L'. |
|
60 |
map bindValue:#'Alt' to:#'Hyper_R'. |
|
299 | 61 |
|
694 | 62 |
"/ map bindValue:#UserInterrupt to:#Ctrlc. "interrupt window process" |
290 | 63 |
map bindValue:#UserAbort to:#Ctrly. "abort window process, but no debugger" |
92 | 64 |
map bindValue:#FlushInput to:#CtrlX. "flush typeahead input" |
65 |
map bindValue:#DestroyView to:#CmdCtrlX. "to destroy dead views" |
|
66 |
map bindValue:#DestroyTopView to:#CmdCtrlx. "to destroy dead views" |
|
67 |
||
68 |
map bindValue:#DoIt to:#Cmdd. "i.e. Cmd-d / Alt-d (sometimes Meta-d)" |
|
697 | 69 |
map bindValue:#DoIt to:#Ctrld. |
92 | 70 |
map bindValue:#InspectIt to:#Cmdi. "evaluate & inspect result" |
697 | 71 |
map bindValue:#InspectIt to:#Ctrlq. |
92 | 72 |
map bindValue:#PrintIt to:#Cmdp. "evaluate and paste result" |
697 | 73 |
map bindValue:#PrintIt to:#Ctrlp. |
916 | 74 |
map bindValue:#ReplaceIt to:#CmdP. "evaluate and replace selection by result" |
455
1bc57270b5d7
added Cmd-Shift-B as BrowseIt shortCut
Claus Gittinger <cg@exept.de>
parents:
442
diff
changeset
|
75 |
map bindValue:#BrowseIt to:#CmdB. |
697 | 76 |
map bindValue:#BrowseIt to:#CtrlB. |
922 | 77 |
map bindValue:#ImplementorsOfIt to:#CtrlI. |
496 | 78 |
map bindValue:#ImplementorsOfIt to:#CmdI. |
922 | 79 |
"/ map bindValue:#SendersOfIt to:#CtrlS. |
80 |
"/ map bindValue:#SendersOfIt to:#CmdS. |
|
92 | 81 |
|
681 | 82 |
map bindValue:#ToggleInsertMode to:#Ctrli. |
83 |
||
92 | 84 |
map bindValue:#Copy to:#Cmdc. "copy selection to buffer" |
694 | 85 |
map bindValue:#Copy to:#Ctrlc. "copy selection to buffer" |
86 |
||
92 | 87 |
map bindValue:#Cut to:#Cmdx. "cut selection into buffer" |
699 | 88 |
map bindValue:#Cut to:#Ctrlx. |
92 | 89 |
map bindValue:#Paste to:#Cmdv. "paste buffer or external selection" |
699 | 90 |
map bindValue:#Paste to:#Ctrlv. |
619 | 91 |
map bindValue:#Paste to:#CmdV. "paste buffer or external selection" |
92 | 92 |
map bindValue:#Replace to:#Cmdr. "same as paste" |
697 | 93 |
map bindValue:#Replace to:#Ctrlr. |
92 | 94 |
map bindValue:#Find to:#Cmds. "open searchbox" |
697 | 95 |
map bindValue:#Find to:#Ctrlf. |
92 | 96 |
map bindValue:#FindNext to:#Cmdf. "search fwd for last searchpattern or selection" |
97 |
map bindValue:#FindPrev to:#Cmdb. "search bwd for last searchpattern or selection" |
|
697 | 98 |
map bindValue:#FindPrev to:#Ctrlb. |
92 | 99 |
map bindValue:#SelectAll to:#CmdA. "that is Alt-shift-a" |
694 | 100 |
map bindValue:#SelectAll to:#Ctrla. "that is Alt-shift-a" |
92 | 101 |
map bindValue:#GotoLine to:#Cmdg. |
697 | 102 |
map bindValue:#GotoLine to:#Ctrlg. |
92 | 103 |
map bindValue:#SelectWord to:#Cmdw. "select word under cursor" |
725
741bb3230b81
undo is CTRL-z (windows-default)
Claus Gittinger <cg@exept.de>
parents:
719
diff
changeset
|
104 |
"/ map bindValue:#Undo to:#Cmdu. |
741bb3230b81
undo is CTRL-z (windows-default)
Claus Gittinger <cg@exept.de>
parents:
719
diff
changeset
|
105 |
"/ map bindValue:#Undo to:#Ctrlu. |
741bb3230b81
undo is CTRL-z (windows-default)
Claus Gittinger <cg@exept.de>
parents:
719
diff
changeset
|
106 |
map bindValue:#Undo to:#Ctrlz. |
92 | 107 |
|
108 |
map bindValue:#Accept to:#Cmda. |
|
692 | 109 |
map bindValue:#Accept to:#Ctrls. |
922 | 110 |
|
92 | 111 |
map bindValue:#Explain to:#Cmde. |
112 |
map bindValue:#Explain to:#Cmdh. |
|
547 | 113 |
map bindValue:#Format to:#CmdF. "that is Alt-shift-F" |
554 | 114 |
"/ map bindValue:#Format to:#CtrlF. "that is Ctrl-shift-F" |
716
b89dd0c733b0
CtrlBreak for keyboard interrupt
Stefan Vogel <sv@exept.de>
parents:
715
diff
changeset
|
115 |
|
705 | 116 |
"/ map bindValue:#DeleteLine to:#CtrlX. |
92 | 117 |
|
118 |
map bindValue:#NextPage to:#Next. "typically labelled PageDown on keyboard" |
|
119 |
map bindValue:#PreviousPage to:#Prior. "typically labelled PageUp on keyboard" |
|
120 |
||
697 | 121 |
"/ map bindValue:#PreviousPage to:#Ctrlb. "vi behavior" |
122 |
"/ map bindValue:#NextPage to:#Ctrlf. "vi behavior" |
|
123 |
"/ map bindValue:#HalfPageUp to:#Ctrlu. |
|
124 |
"/ map bindValue:#HalfPageDown to:#Ctrld. |
|
92 | 125 |
|
442 | 126 |
"/ old setting: |
127 |
"/ map bindValue:#BeginOfText to:#Home. "some prefer to bind #BeginOfLine to #Home" |
|
128 |
"/ map bindValue:#EndOfText to:#End. "some prefer to bind #EndOfLine to #End" |
|
129 |
"/ |
|
130 |
"/ new setting: |
|
609 | 131 |
map bindValue:#BeginOfLine to:#Home. |
132 |
map bindValue:#EndOfLine to:#End. |
|
133 |
map bindValue:#BeginOfText to:#CtrlHome. |
|
134 |
map bindValue:#EndOfText to:#CtrlEnd. |
|
442 | 135 |
|
694 | 136 |
"/ map bindValue:#BeginOfLine to:#Ctrla. |
92 | 137 |
map bindValue:#EndOfLine to:#Ctrle. |
138 |
map bindValue:#NextWord to:#Ctrlw. |
|
694 | 139 |
map bindValue:#EndOfWord to:#CtrlW. |
609 | 140 |
map bindValue:#NextWord to:#CtrlCursorRight. |
141 |
map bindValue:#PreviousWord to:#CtrlCursorLeft. |
|
92 | 142 |
|
609 | 143 |
map bindValue:#ScrollUp to:#CtrlCursorUp. |
144 |
map bindValue:#ScrollDown to:#CtrlCursorDown. |
|
92 | 145 |
|
146 |
map bindValue:#SearchMatchingParent to:#Ctrlm. |
|
147 |
map bindValue:#SelectMatchingParents to:#Cmdm. |
|
148 |
||
149 |
map bindValue:#SelectToEnd to:#CtrlE. "that is ctrl-shift-e" |
|
150 |
map bindValue:#SelectFromBeginning to:#CtrlA. "that is ctrl-shift-a" |
|
151 |
map bindValue:#ExpandSelectionByLine to:#Ctrll. "try multiple Ctrl-l's ..." |
|
152 |
||
153 |
"Notice: |
|
154 |
Cmd-CursorLeft/Right and Alt-CursorLeft/Right |
|
155 |
are also used by some winmdowmanagers (fvwm) |
|
156 |
if this is the case on your system, either |
|
157 |
change the following to use different keys, |
|
158 |
or change the windowmanagers configuration file |
|
159 |
(usr/lib/X11/xxxwm/*rc). |
|
160 |
The above is the reason that the following defines Ctrl-xxx |
|
161 |
as an alternative (mwm in the INDY also uses the alt-sequences) |
|
162 |
" |
|
163 |
map bindValue:#FocusNext to:#CmdCursorRight. "experimental" |
|
164 |
map bindValue:#FocusPrevious to:#CmdCursorLeft. "experimental" |
|
550 | 165 |
map bindValue:#FocusNext to:#CmdCursorDown. "experimental" |
166 |
map bindValue:#FocusPrevious to:#CmdCursorUp. "experimental" |
|
167 |
||
92 | 168 |
map bindValue:#FocusNext to:#AltCursorRight. "experimental" |
169 |
map bindValue:#FocusPrevious to:#AltCursorLeft. "experimental" |
|
255 | 170 |
map bindValue:#FocusNext to:#AltCursorDown. "experimental" |
171 |
map bindValue:#FocusPrevious to:#AltCursorUp. "experimental" |
|
92 | 172 |
"/ map bindValue:#FocusNext to:#CtrlCursorRight. "experimental" |
173 |
"/ map bindValue:#FocusPrevious to:#CtrlCursorLeft. "experimental" |
|
174 |
||
564 | 175 |
|
609 | 176 |
map bindValue:#NonInsertingTab to:#ShiftTab. |
177 |
"/ map bindValue:#BackTab to:#ShiftTab. |
|
178 |
map bindValue:#BackTab to:#CtrlTab. |
|
564 | 179 |
map bindValue:#NonInsertingTab to:#'ISO_Left_Tab'. |
180 |
"/ map bindValue:#ToggleTabs to:#CtrlTab. |
|
181 |
||
182 |
"/ map bindValue:#FocusNext to:#CtrlTab. "experimental" |
|
138 | 183 |
map bindValue:#FocusNext to:#CmdTab. "experimental" |
564 | 184 |
"/ map bindValue:#FocusPrevious to:#'ISO_Left_Tab'. |
185 |
map bindValue:#FocusPrevious to:#'CmdISO_Left_Tab'. |
|
415 | 186 |
"/ map bindValue:#Tab to:#'ISO_Left_Tab'. |
609 | 187 |
map bindValue:#Menu to:#Cmdz. |
92 | 188 |
|
122 | 189 |
"* |
190 |
* ISO LATIN 1 symbolic characters - map to iso8859 values |
|
191 |
* not all Xservers send those correctly. |
|
192 |
* As a fall back, dieresis mappings using Alt-key sequences are found at |
|
193 |
* the end. |
|
92 | 194 |
*" |
122 | 195 |
|
196 |
#( |
|
197 |
"/ dieresis characters |
|
198 |
||
199 |
Udiaeresis 16rDC |
|
200 |
Adiaeresis 16rC4 |
|
201 |
Odiaeresis 16rD6 |
|
202 |
udiaeresis 16rFC |
|
203 |
adiaeresis 16rE4 |
|
204 |
odiaeresis 16rF6 |
|
205 |
ydiaeresis 16rFF |
|
206 |
||
207 |
"/ grave |
|
208 |
||
209 |
Agrave 16rC0 |
|
210 |
Egrave 16rC8 |
|
211 |
Igrave 16rCC |
|
212 |
Ograve 16rCC |
|
213 |
Ugrave 16rD9 |
|
214 |
agrave 16rE0 |
|
215 |
egrave 16rE8 |
|
216 |
igrave 16rEC |
|
217 |
ograve 16rF2 |
|
218 |
ugrave 16rF9 |
|
219 |
||
220 |
"/ acute |
|
221 |
||
222 |
Aacute 16rC1 |
|
223 |
Eacute 16rC9 |
|
224 |
Iacute 16rCD |
|
225 |
Oacute 16rD3 |
|
226 |
Uacute 16rDA |
|
227 |
Yacute 16rDD |
|
228 |
aacute 16rE1 |
|
229 |
eacute 16rE9 |
|
230 |
iacute 16rED |
|
231 |
oacute 16rF3 |
|
232 |
uacute 16rFA |
|
233 |
yacute 16rFD |
|
234 |
||
235 |
"/ circumflex |
|
236 |
||
237 |
Acircumflex 16rC2 |
|
609 | 238 |
Ecircumflex 16rCA |
239 |
Icircumflex 16rCE |
|
240 |
Ocircumflex 16rD4 |
|
241 |
Ucircumflex 16rDB |
|
242 |
acircumflex 16rE2 |
|
243 |
ecircumflex 16rEA |
|
244 |
icircumflex 16rEE |
|
245 |
ocircumflex 16rF4 |
|
246 |
ucircumflex 16rFB |
|
122 | 247 |
|
248 |
"/ tilde |
|
249 |
||
609 | 250 |
Atilde 16rC3 |
251 |
Ntilde 16rD1 |
|
252 |
atilde 16rE3 |
|
253 |
ntilde 16rF1 |
|
122 | 254 |
|
255 |
"/ ring |
|
256 |
||
609 | 257 |
Aring 16rC4 |
258 |
aring 16rE4 |
|
122 | 259 |
|
260 |
"/ ligatures |
|
261 |
||
609 | 262 |
AE 16rC5 |
263 |
ae 16rE5 |
|
122 | 264 |
ssharp 16rDF |
265 |
||
266 |
"/ cedilla |
|
267 |
||
609 | 268 |
Ccedilla 16rC7 |
269 |
ccedilla 16rE7 |
|
122 | 270 |
|
271 |
"/ slashed |
|
272 |
||
609 | 273 |
Ooblique 16rD8 |
274 |
oslash 16rF8 |
|
122 | 275 |
|
276 |
"/ misc (if on your keyboard) |
|
277 |
||
278 |
Eth 16rD0 "/ some old servers still use this |
|
609 | 279 |
ETH 16rD0 |
280 |
eth 16rF0 |
|
281 |
multiply 16rD7 |
|
122 | 282 |
Thorn 16rDE "/ some old servers still use this |
283 |
THORN 16rDE "/ some old servers still use this |
|
609 | 284 |
division 16rF7 |
285 |
thorn 16rFE |
|
122 | 286 |
|
287 |
section 16rA7 |
|
288 |
degree 16rB0 |
|
289 |
twosuperior 16rB2 |
|
290 |
threesuperior 16rB3 |
|
291 |
mu 16rB5 |
|
292 |
) pairWiseDo:[:symbolic :numeric | |
|
293 |
map bindValue:(Character value:numeric) to:symbolic. |
|
294 |
]. |
|
92 | 295 |
|
296 |
"* |
|
122 | 297 |
* need more here (katakana, arabic, cyrillic, greek etc.) |
92 | 298 |
*" |
299 |
||
300 |
"* |
|
301 |
* numeric keypad - binding to normal numeric keys |
|
302 |
*" |
|
303 |
"/ map bindValue:$0 to:#'KP_Insert'. |
|
304 |
"/ map bindValue:$1 to:#'KP_End'. |
|
305 |
"/ map bindValue:$2 to:#'KP_Down'. |
|
306 |
"/ map bindValue:$3 to:#'KP_Next'. |
|
307 |
"/ map bindValue:$4 to:#'KP_Left'. |
|
308 |
"/ map bindValue:$5 to:#'KP_Begin'. |
|
309 |
"/ map bindValue:$6 to:#'KP_Right'. |
|
310 |
"/ map bindValue:$7 to:#'KP_Home'. |
|
311 |
"/ map bindValue:$8 to:#'KP_Up'. |
|
312 |
"/ map bindValue:$9 to:#'KP_Prior'. |
|
380 | 313 |
map bindValue:#Return to:#'KP_Enter'. |
314 |
map bindValue:#Delete to:#'KP_Delete'. |
|
92 | 315 |
|
316 |
||
86 | 317 |
"/ remove these lines, if your keyboard has a COMPOSE-key. |
318 |
"/ None of our Xdisplays here has one - so we simulate it using CTRL-R ... |
|
609 | 319 |
"/ which on some (of our) servers comes pretranslated as Multi_key, |
327 | 320 |
"/ CtrlMulti_key or even Mode_switch. |
86 | 321 |
|
327 | 322 |
map bindValue:#Compose to:#'Control_R'. "/ the right compose key |
455
1bc57270b5d7
added Cmd-Shift-B as BrowseIt shortCut
Claus Gittinger <cg@exept.de>
parents:
442
diff
changeset
|
323 |
"/ map bindValue:#Compose to:#'Control_L'. "/ the right compose key |
327 | 324 |
map bindValue:#Compose to:#'Multi_key'. "/ the right compose key |
325 |
map bindValue:#Compose to:#'CtrlMulti_key'. "/ the right compose key |
|
609 | 326 |
"/ map bindValue:#Compose to:#'Mode_switch'. |
86 | 327 |
|
328 |
||
329 |
"/ a kludge: some Xservers send #Delete for both the backspace |
|
330 |
"/ and the Delete key. In this case, we use the Backspace function |
|
331 |
"/ for both keys. If your Xserver does not do this (it should not) |
|
332 |
"/ remove or comment the following 'bindValue:#BackSpace'-line: |
|
333 |
"/ |
|
334 |
||
356 | 335 |
"/ map bindValue:#BackSpace to:#Delete. |
86 | 336 |
|
41 | 337 |
"/ |
338 |
"/ my personal preferences - comment it, if you do not like them |
|
339 |
"/ bind function and other keys as: |
|
340 |
"/ |
|
715
529ebe47d1e9
Change default window style to #mswindowsXP
Stefan Vogel <sv@exept.de>
parents:
705
diff
changeset
|
341 |
"/ F1 - help |
484 | 342 |
"/ F2 - completion |
41 | 343 |
"/ F3 - comment-it |
344 |
"/ F4 - uncomment-it |
|
345 |
"/ F5 - paste shell output |
|
715
529ebe47d1e9
Change default window style to #mswindowsXP
Stefan Vogel <sv@exept.de>
parents:
705
diff
changeset
|
346 |
"/ F8 - again |
41 | 347 |
"/ F9 - undent by 4 |
348 |
"/ F10 - indent by 4 |
|
349 |
"/ Control-R - Compose key |
|
350 |
"/ Break - UserInterrupt |
|
351 |
||
352 |
"/ |
|
353 |
"/ convenient functions on the keyboard |
|
354 |
"/ |
|
715
529ebe47d1e9
Change default window style to #mswindowsXP
Stefan Vogel <sv@exept.de>
parents:
705
diff
changeset
|
355 |
map bindValue:#Help to:#F1. |
529ebe47d1e9
Change default window style to #mswindowsXP
Stefan Vogel <sv@exept.de>
parents:
705
diff
changeset
|
356 |
map bindValue:#Again to:#F8. |
41 | 357 |
map bindValue:#UserInterrupt to:#Break. |
716
b89dd0c733b0
CtrlBreak for keyboard interrupt
Stefan Vogel <sv@exept.de>
parents:
715
diff
changeset
|
358 |
map bindValue:#UserInterrupt to:#CtrlBreak. |
89 | 359 |
"/ map bindValue:#PrintIt to:#Print. "/ called PrintScreen on most keyboards |
360 |
"/ map bindValue:#InspectIt to:#Execute. "/ called SysReq on most keyboards |
|
41 | 361 |
|
922 | 362 |
map bindValue:#SaveAs to:#CtrlS. |
88 | 363 |
map bindValue:#SaveAs to:#CmdS. |
364 |
||
481 | 365 |
"/ xxxF5 -> macro ReplaceSelectionByUnixCommandsOutput (unix command output paste) |
460 | 366 |
"/ CtrlTab -> macro ToggleTabs (toggle 4/8 tabs) |
367 |
"/ F10 -> macro IndentBy4 (indent by 4) |
|
368 |
"/ F9 -> macro UndentBy4 (undent by 4) |
|
369 |
"/ F12 -> macro IndentBy1 (indent by 1) |
|
370 |
"/ F11 -> macro UndentBy1 (undent by 1) |
|
484 | 371 |
"/ F2 -> completion |
292 | 372 |
"/ F3 -> commentSelection |
373 |
"/ F4 -> uncommentSelection |
|
41 | 374 |
|
481 | 375 |
"/ map bindValue:#ReplaceSelectionByUnixCommandsOutput to:#F5. |
41 | 376 |
"/ map bindValue:#CmdF97 to:#F7. |
377 |
"/ map bindValue:#CmdF96 to:#F6. |
|
643 | 378 |
|
460 | 379 |
map bindValue:#IndentBy4 to:#F10. |
380 |
map bindValue:#UndentBy4 to:#F9. |
|
41 | 381 |
|
460 | 382 |
map bindValue:#IndentBy1 to:#F12. |
383 |
map bindValue:#UndentBy1 to:#F11. |
|
292 | 384 |
|
726 | 385 |
map bindValue:#ConvertSelectionToLowercaseOrUppercaseOrUppercaseFirst to:#F6. |
728 | 386 |
map bindValue:#ConvertSelectionToUppercase to:#CtrlF6. |
457 | 387 |
|
41 | 388 |
map bindValue:#CommentSelection to:#F3. |
389 |
map bindValue:#UncommentSelection to:#F4. |
|
390 |
||
719 | 391 |
map bindValue:#ParenthizeSelection to:#'Cmd('. |
392 |
map bindValue:#UnparenthizeSelection to:#'Cmd)'. |
|
393 |
||
699 | 394 |
"/ map bindValue:#LearnKeyboardMacro to:#CmdL. |
395 |
"/ map bindValue:#ExecuteKeyboardMacro to:#CmdM. |
|
396 |
map bindValue:#LearnKeyboardMacro to:#CtrlF2. |
|
397 |
map bindValue:#ExecuteKeyboardMacro to:#CmdF2. |
|
438 | 398 |
|
481 | 399 |
map bindValue:#CodeCompletion to:#F2. |
918 | 400 |
map bindValue:#CodeCompletion to:#'Ctrl '. |
438 | 401 |
|
609 | 402 |
"/ map bindValue:#PasteBlockEvaluationsOutput to:#CmdV. |
487 | 403 |
|
41 | 404 |
"/ |
405 |
"/ since some of my machines have german keyboards ;-) |
|
406 |
"/ and I like to be able to edit my files on all machines, |
|
407 |
"/ I need a translation in both ways. |
|
408 |
"/ you'd normally not define things in both directions. |
|
409 |
"/ |
|
609 | 410 |
"/ actually, these things belong into the servers modmap or |
57 | 411 |
"/ into a display specific d_<displayName>.rc ... |
41 | 412 |
"/ |
413 |
"/ german national characters on a US keyboard: |
|
140 | 414 |
"/ comment this, if you have a german keyboard. |
41 | 415 |
"/ |
140 | 416 |
"/map bindValue:(Character value:16rFC) to:#'Cmd['. "/ u dieresis |
417 |
"/map bindValue:(Character value:16rE4) to:#'Cmd'''. "/ a dieresis |
|
418 |
"/map bindValue:(Character value:16rF6) to:#'Cmd;'. "/ o dieresis |
|
419 |
"/map bindValue:(Character value:16rDC) to:#'Cmd{'. "/ U dieresis |
|
420 |
"/map bindValue:(Character value:16rC4) to:#'Cmd"'. "/ A dieresis |
|
421 |
"/map bindValue:(Character value:16rD6) to:#'Cmd:'. "/ O dieresis |
|
422 |
"/map bindValue:(Character value:16rDF) to:#'Cmd-'. "/ s-sharp |
|
41 | 423 |
|
424 |
"/ |
|
122 | 425 |
"/ US characters on national keyboards: |
426 |
"/ (on many national keyboards, the x-server does NOT correctly |
|
427 |
"/ xlate characters .... on others, it does and you may remove/comment |
|
428 |
"/ the following.) |
|
41 | 429 |
"/ |
430 |
map bindValue:$[ to:#'Alt['. |
|
431 |
map bindValue:$] to:#'Alt]'. |
|
432 |
map bindValue:$| to:#'Alt|'. |
|
433 |
map bindValue:${ to:#'Alt{'. |
|
57 | 434 |
map bindValue:$} to:#'Alt}'. |
122 | 435 |
map bindValue:$\ to:#'Alt\'. |
140 | 436 |
map bindValue:$~ to:#'Alt~'. |
437 |
map bindValue:$@ to:#'Alt@'. |
|
438 |
||
609 | 439 |
map bindValue:$[ to:#'Cmd['. |
140 | 440 |
map bindValue:$] to:#'Cmd]'. |
441 |
map bindValue:$| to:#'Cmd|'. |
|
442 |
map bindValue:${ to:#'Cmd{'. |
|
443 |
map bindValue:$} to:#'Cmd}'. |
|
444 |
map bindValue:$\ to:#'Cmd\'. |
|
445 |
map bindValue:$~ to:#'Cmd~'. |
|
446 |
map bindValue:$@ to:#'Cmd@'. |
|
497 | 447 |
map bindValue:$# to:#'Cmd#'. |
140 | 448 |
|
690 | 449 |
map bindValue:#UserInterrupt to:#'Cmd.' . "/ for squeak compatibility |
122 | 450 |
|
41 | 451 |
! |