Disable automatic Shift when pressing Compose

This commit is contained in:
Jules Aguillon 2024-11-17 11:10:21 +01:00
parent 237c4e2cc2
commit 23097921cf

View File

@ -60,10 +60,10 @@ public final class KeyEventHandler
{ {
if (key == null) if (key == null)
return; return;
// Stop auto capitalisation when pressing some keys
switch (key.getKind()) switch (key.getKind())
{ {
case Modifier: case Modifier:
// Stop auto capitalisation when activating a system modifier
switch (key.getModifier()) switch (key.getModifier())
{ {
case CTRL: case CTRL:
@ -73,6 +73,9 @@ public final class KeyEventHandler
break; break;
} }
break; break;
case Compose_pending:
_autocap.stop();
break;
default: break; default: break;
} }
} }