Home Download Buy Blog Forum Support

[RESOLVED] RIGHTALT+letter doesn't work on Windows

[RESOLVED] RIGHTALT+letter doesn't work on Windows

Postby bizoo on Fri Feb 17, 2012 9:16 am

startup, version: 2178 windows x64 channel: dev

Just noticed this issue, but probably not a new one. Tested on 2 different machine (same OS on both)

On Windows, RIGHTALT key is used to access the third value of a key, e.g. RIGHTALT+e trigger a € on my keyboard and RIGHTALT+2 trigger a @.

Now when I hit RIGHTALT+e this trigger (using sublime.log_input(True)):
Code: Select all
key evt: control+alt+e

and it doesn't insert a €

This is the same for all letter but it work fine for some number:
When I hit RIGHTALT+2:
Code: Select all
chr evt: @ (0x40)


But when I hit RIGHTALT+0:
Code: Select all
key evt: control+alt+0


I'm totally puzzled by this behavior.
Last edited by bizoo on Mon Feb 20, 2012 11:34 am, edited 1 time in total.
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [BUG] RIGHTALT+letter doesn't work on Windows

Postby jps on Sat Feb 18, 2012 12:56 pm

Pressing AltGr+x on Windows will send a ctrl+alt+x key event to the application, this is a normal, albeit unfortunate, part of the way Windows works.

If I set my keyboard layout to German, for example, typing AltGr+e will insert a € sign. If input logging is enabled, first a key event for ctrl+alt+e is reported, and then a character event for €.

If you have a key binding bound to ctrl+alt+e, then this will eat the key event, and the character won't get sent.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: [BUG] RIGHTALT+letter doesn't work on Windows

Postby bizoo on Mon Feb 20, 2012 7:12 am

Thanks for your answer Jon.

You're right, Windows work exactly (and totally unexpectedly) as you explained and my RIGHTALT+e is eaten by:
Code: Select all
{ "keys": ["ctrl+alt+e"], "command": "find_next_lint_error" },

Argh, keybindings management become a little more tricky.
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests