From 00e207e95d5aab6bbc37c8178bd189b0c0619be6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Mar 2021 21:39:00 +0900 Subject: 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 --- src/MainWidget.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/MainWidget.h') 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 other_keys; TQValueList numl_keys; - void send_key(unsigned int keycode, bool press, bool release); + void send_key(unsigned int keycode); Display *display; KbdTray *tray; -- cgit v1.2.1