IDEA-206348: do not hide a suggestion by pressing AltGr

This commit is contained in:
Sergey Malenkov
2019-03-19 19:24:37 +03:00
parent 7237e7e879
commit eda28fd826
@@ -369,6 +369,11 @@ public class IdeEventQueue extends EventQueue {
e = metaEvent;
}
if (JAVA_11_OR_LATER && (SystemInfo.isMac || SystemInfo.isWindows)) {
if (e instanceof KeyEvent && ((KeyEvent)e).getKeyCode() == KeyEvent.VK_ALT_GRAPH) {
if (!Registry.is("actionSystem.force.alt.gr") && Registry.is("actionSystem.fix.alt.gr")) {
((KeyEvent)e).setKeyCode(KeyEvent.VK_ALT);
}
}
if (e instanceof InputEvent && ((InputEvent)e).isAltGraphDown()) {
if (!Registry.is("actionSystem.force.alt.gr") && Registry.is("actionSystem.fix.alt.gr")) {
try {