mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-17 16:01:22 +02:00
Add the capslock key
The key enable caps lock immediately. It does nothing if caps lock is already enabled. It is not present on the keyboard by default but a place is defined on every layout, top-right of the shift key. It can be enabled in the settings. The icon is from materialdesignicons.com.
This commit is contained in:
@ -35,6 +35,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
case ACTION: _recv.performAction(); break;
|
||||
case SWITCH_PROGRAMMING: _recv.switchProgramming(); break;
|
||||
case SWITCH_GREEKMATH: _recv.switchGreekmath(); break;
|
||||
case CAPS_LOCK: _recv.enableCapsLock(); break;
|
||||
}
|
||||
break;
|
||||
case Keyevent:
|
||||
@ -102,6 +103,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
public void setPane_normal();
|
||||
public void showKeyboardConfig();
|
||||
public void performAction();
|
||||
public void enableCapsLock();
|
||||
|
||||
public void switchMain();
|
||||
public void switchNumeric();
|
||||
|
Reference in New Issue
Block a user