forked from extern/Unexpected-Keyboard
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:
parent
d5836ebb97
commit
13a13ecbb6
@ -119,6 +119,7 @@ class KeyModifier
|
|||||||
{
|
{
|
||||||
case Char: name = apply_fn_char(k.getChar()); break;
|
case Char: name = apply_fn_char(k.getChar()); break;
|
||||||
case Keyevent: name = apply_fn_keyevent(k.getKeyevent()); break;
|
case Keyevent: name = apply_fn_keyevent(k.getKeyevent()); break;
|
||||||
|
case Event: name = apply_fn_event(k.getEvent()); break;
|
||||||
case String:
|
case String:
|
||||||
switch (k.getString())
|
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]. */
|
/** Return the name of modified key, or [null]. */
|
||||||
private static String apply_fn_char(char c)
|
private static String apply_fn_char(char c)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user