diff options
author | Michele Calgaro <[email protected]> | 2021-03-13 21:39:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-03-13 21:39:00 +0900 |
commit | 00e207e95d5aab6bbc37c8178bd189b0c0619be6 (patch) | |
tree | d7ce4d55e87a33ec2bb9e20ed209fedae90e4096 /src/MainWidget.h | |
parent | fb22ce0a5666025d9964522561f83d9b6008e4ad (diff) | |
download | kvkbd-00e207e95d5aab6bbc37c8178bd189b0c0619be6.tar.gz kvkbd-00e207e95d5aab6bbc37c8178bd189b0c0619be6.zip |
Fixed key text display when shift is used (caps is still broken) as well
as several improvements to the code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/MainWidget.h')
-rw-r--r-- | src/MainWidget.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/MainWidget.h b/src/MainWidget.h index f476c67..2c708cc 100644 --- a/src/MainWidget.h +++ b/src/MainWidget.h @@ -50,9 +50,8 @@ public: public slots: void keyPress(unsigned int keycode); - void toggleCaps(); void toggleNumlock(); - void toggleShift(); + void toggleShift(unsigned int keycode); void toggleNumericPad(); void toggleFontAutoRes(); void toggleLock(); @@ -73,6 +72,8 @@ protected: private: void updateFont(); + void updateNumlock(); + void updateShift(); bool nresize; @@ -82,8 +83,8 @@ private: VButton *caps; - VButton *lshft; - VButton *rshft; + VButton *lshift; + VButton *rshift; VButton *lctrl; VButton *rctrl; @@ -110,7 +111,7 @@ private: TQValueList<VButton *> other_keys; TQValueList<NumpadVButton *> numl_keys; - void send_key(unsigned int keycode, bool press, bool release); + void send_key(unsigned int keycode); Display *display; KbdTray *tray; |