by ~suv » Thu Jul 09, 2009 4:40 pm
These character names seem to stem from the X11 world (but I didn't yet verifiy that & google for an annotated list) - I used an xterm and the command 'xev' to figure out the previous two (dollar, asterisk)...
output for '/', '|' and '\':
- Code: Select all
KeyRelease event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578206814, (-152,74), root:(489,213),
state 0x1, keycode 34 (keysym 0x2f, slash), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False
KeyPress event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578209918, (-152,74), root:(489,213),
state 0x2000, keycode 34 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"
XmbLookupString gives 1 bytes: (7c) "|"
XFilterEvent returns: False
KeyPress event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578217262, (-152,74), root:(489,213),
state 0x2001, keycode 34 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) "\"
XmbLookupString gives 1 bytes: (5c) "\"
XFilterEvent returns: False
so my first tests would use 'bar' for '|' and 'backslash' for '\'. But the real problem are the modifiers - especially 'Option/Alt'. On my MBP '|' and '\' are not on the same key when switching to the Italian keyboard layout and at first sight I can't even find the 'bar' key, with none of the (combined) modifiers - probably because MB ≠ MBP?
Keyboard shortcuts that need the modifier 'Option' never worked on my laptop (physical keyboard layout 'de_CH'), except where the 'Alt+' is defined as mod anyway (all menu calls: 'Alt+f' for 'File', 'Alt+e' for 'Edit' etc.) but not without remapping the 'Option' key in X11 as well (with '~./Xmodmap': left option key -> 'Alt_L', right option key stays 'Mode_switch'):
- Code: Select all
LeWitt:~ suv$ xmodmap -pm
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Alt_L (0x42), Mode_switch (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
Q: can you toggle the guides with
|? I can't because '|' is typed with
Option +
7, and the
Option keypress event gets eaten by inkscape before it is recognized as part of the key mapping and then inkscape thinks I pressed
7 and does nothing ;-(
hth, ~suv
These character names seem to stem from the X11 world (but I didn't yet verifiy that & google for an annotated list) - I used an xterm and the command 'xev' to figure out the previous two (dollar, asterisk)...
output for '/', '|' and '\':
[code]
KeyRelease event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578206814, (-152,74), root:(489,213),
state 0x1, keycode 34 (keysym 0x2f, slash), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False
KeyPress event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578209918, (-152,74), root:(489,213),
state 0x2000, keycode 34 (keysym 0x7c, bar), same_screen YES,
XLookupString gives 1 bytes: (7c) "|"
XmbLookupString gives 1 bytes: (7c) "|"
XFilterEvent returns: False
KeyPress event, serial 29, synthetic NO, window 0xa00001,
root 0x1fd, subw 0x0, time 1578217262, (-152,74), root:(489,213),
state 0x2001, keycode 34 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) "\"
XmbLookupString gives 1 bytes: (5c) "\"
XFilterEvent returns: False
[/code]
so my first tests would use 'bar' for '|' and 'backslash' for '\'. But the real problem are the modifiers - especially 'Option/Alt'. On my MBP '|' and '\' are not on the same key when switching to the Italian keyboard layout and at first sight I can't even find the 'bar' key, with none of the (combined) modifiers - probably because MB ≠ MBP?
Keyboard shortcuts that need the modifier 'Option' never worked on my laptop (physical keyboard layout 'de_CH'), except where the 'Alt+' is defined as mod anyway (all menu calls: 'Alt+f' for 'File', 'Alt+e' for 'Edit' etc.) but not without remapping the 'Option' key in X11 as well (with '~./Xmodmap': left option key -> 'Alt_L', right option key stays 'Mode_switch'):
[code]
LeWitt:~ suv$ xmodmap -pm
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Alt_L (0x42), Mode_switch (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
[/code]
Q: can you toggle the guides with [kbd]|[/kbd]? I can't because '|' is typed with [kbd]Option[/kbd] + [kbd]7[/kbd], and the [kbd]Option[/kbd] keypress event gets eaten by inkscape before it is recognized as part of the key mapping and then inkscape thinks I pressed [kbd]7[/kbd] and does nothing ;-(
hth, ~suv