Switch to greekmath with Fn+switch_numeric

Add a shortcut to switch to the greekmath pane directly from the main
layout.
This commit is contained in:
Jules Aguillon 2022-07-09 17:31:44 +02:00
parent d5836ebb97
commit 13a13ecbb6

View File

@ -119,6 +119,7 @@ class KeyModifier
{
case Char: name = apply_fn_char(k.getChar()); break;
case Keyevent: name = apply_fn_keyevent(k.getKeyevent()); break;
case Event: name = apply_fn_event(k.getEvent()); break;
case String:
switch (k.getString())
{
@ -147,6 +148,15 @@ class KeyModifier
}
}
private static String apply_fn_event(KeyValue.Event ev)
{
switch (ev)
{
case SWITCH_NUMERIC: return "switch_greekmath";
default: return null;
}
}
/** Return the name of modified key, or [null]. */
private static String apply_fn_char(char c)
{