Bug 564909

Summary: Toggle Split Editor (Vertical) shortcut (Ctrl + {) not accessible with German keyboard
Product: [Eclipse Project] Platform Reporter: Peter Wichers <peter.wichers>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: ma.becker, peter.wichers, rolf.theunissen
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Peter Wichers CLA 2020-07-03 10:43:20 EDT
On a German keyboard, the open curly brackets are written with (Alt Gr + 7) or (Ctrl + Alt + 7). 
However, pressing Ctrl + Alt Gr + 7 does not apply the "Toggle Split Editor (Vertical)". 
A "{" is written into the editor instead.

Toggle Split Editor (Horizontal) is accessible.
Comment 1 Rolf Theunissen CLA 2020-07-06 02:24:50 EDT
Both AltGR is translated to Ctrl+Alt by windows. Therefore the keypress as observed by Eclipse is always Ctrl+Alt+{, which is not equal to the defined shortcut Ctrl+{. See also Bug 280580.

It seems that autohotkey can observer the difference, maybe somebody can investigate if it is possible to do similar detection in Eclipse.

https://superuser.com/questions/592970/can-i-make-ctrlalt-not-act-like-altgr-on-windows
Comment 2 Rolf Theunissen CLA 2020-07-09 12:27:02 EDT
For anybody trying to get this fixed, here is an extended blog post on all the Windows API to figure out key-presses and the problems in it. The good news is that there seems to be a solution.
https://blog.molecular-matters.com/2011/09/05/properly-handling-keyboard-input/