IDEA-177979 Impossible to enter zero width non-joiner character on Win10

This commit is contained in:
Dmitry Batrak
2017-09-07 11:16:00 +03:00
parent 6e7553b20a
commit bead9e9440
@@ -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();
}