mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-177979 Impossible to enter zero width non-joiner character on Win10
This commit is contained in:
@@ -711,6 +711,9 @@ public class UIUtil {
|
||||
char c = e.getKeyChar();
|
||||
if (c < 0x20 || c == 0x7F) return false;
|
||||
|
||||
// Allow input of special characters on Windows in Persian keyboard layout using Ctrl+Shift+1..4
|
||||
if (SystemInfo.isWindows && c >= 0x200C && c <= 0x200F) return true;
|
||||
|
||||
if (SystemInfo.isMac) {
|
||||
return !e.isMetaDown() && !e.isControlDown();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user