mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-22 02:32:08 +02:00
Lock shift with a gesture
The circle gesture locks shift. It is also the case for the round-trip gesture if shift is in a corner.
This commit is contained in:
parent
6ce2195253
commit
a3023a7f18
@ -213,6 +213,7 @@ public final class KeyModifier
|
||||
case Event: name = apply_fn_event(k.getEvent()); break;
|
||||
case Placeholder: name = apply_fn_placeholder(k.getPlaceholder()); break;
|
||||
case Editing: name = apply_fn_editing(k.getEditing()); break;
|
||||
case Modifier: name = apply_fn_modifier(k.getModifier()); break;
|
||||
}
|
||||
return (name == null) ? k : KeyValue.getKeyByName(name);
|
||||
}
|
||||
@ -268,6 +269,15 @@ public final class KeyModifier
|
||||
}
|
||||
}
|
||||
|
||||
private static String apply_fn_modifier(KeyValue.Modifier m)
|
||||
{
|
||||
switch (m)
|
||||
{
|
||||
case SHIFT: return "capslock";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static KeyValue apply_ctrl(KeyValue k)
|
||||
{
|
||||
if (_modmap != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user