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