Can't get ctrl-shift-u


#1

Hello, I’ve been working on my own keymap.cson file and almost everything seems to be ok.

But, when I try to map ctrl-shift-u to lowercase (i.e. ‘ctrl-shift-U’: ‘editor:lower-case’), it doesn’t work.

I 've activated the Keybinding Resolver and this is what I get when I press ‘CTRL+SHIFT+U’:

If I press other sequence like ‘ctrl-shift-I’ or ‘ctrl-shift-M’, it is mapped correctly.

On linux, if I map with xev:

ctr-shift-M

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7306898, (86,-11), root:(88,519),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7307516, (86,-11), root:(88,519),
state 0x4, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7308124, (86,-11), root:(88,519),
state 0x5, keycode 58 (keysym 0x4d, M), same_screen YES,
" XLookupString gives 1 bytes: (0d) “
” XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7308204, (86,-11), root:(88,519),
state 0x5, keycode 58 (keysym 0x4d, M), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7308827, (86,-11), root:(88,519),
state 0x5, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7309230, (86,-11), root:(88,519),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

and ctrl-shift-U

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7378281, (101,-12), root:(103,518),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7379497, (101,-12), root:(103,518),
state 0x4, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7380154, (101,-12), root:(103,518),
state 0x5, keycode 30 (keysym 0x55, U), same_screen YES,
XLookupString gives 1 bytes: (15) ""
XmbLookupString gives 1 bytes: (15) ""
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7380224, (101,-12), root:(103,518),
state 0x5, keycode 30 (keysym 0x55, U), same_screen YES,
XLookupString gives 1 bytes: (15) ""
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7380752, (101,-12), root:(103,518),
state 0x5, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001,
root 0xd3, subw 0x0, time 7381171, (101,-12), root:(103,518),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

This sequence prints a strange character on the U key events but I can’t tell if this is the expected behavior.
What am I doing wrong, why can’t I get ‘ctrl-shift-u’ working or resolved?


#2

Responding to myself.

In linux , ctrl-shift-u is used for input unicode characters.
ctrl-shift-u, release u, type unicode, release ctrl-shift

To map ctrl-shift-u to editor:lower-case’:

In the keymapping.cson
’ctrl-å’: ‘editor:lower-case’ #ctrl-shift-u

Solved!

+1 to Atom, really hackable.


#3

This is slightly off topic, but: Actually you don’t have to keep holding control shift while typing the unicode number.