summaryrefslogtreecommitdiffstats
path: root/src/MainWidget.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-03-13 21:39:00 +0900
committerMichele Calgaro <[email protected]>2021-03-13 21:39:00 +0900
commit00e207e95d5aab6bbc37c8178bd189b0c0619be6 (patch)
treed7ce4d55e87a33ec2bb9e20ed209fedae90e4096 /src/MainWidget.h
parentfb22ce0a5666025d9964522561f83d9b6008e4ad (diff)
downloadkvkbd-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.h11
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;