diff options
author | Michele Calgaro <[email protected]> | 2021-03-15 10:50:14 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-03-15 10:52:47 +0900 |
commit | 48c1053fa1e5896a10e576b9eb35634fa789cff4 (patch) | |
tree | d2686a57f2c353fce0f5352f0b295018031c19b4 /src/VButton.h | |
parent | 568e7737c7b589e65b9f39a5d7a3edab791177b0 (diff) | |
download | kvkbd-48c1053fa1e5896a10e576b9eb35634fa789cff4.tar.gz kvkbd-48c1053fa1e5896a10e576b9eb35634fa789cff4.zip |
Fixed behavior of caps for non-alpha characters, which was broken in
commit 00e207e.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/VButton.h')
-rw-r--r-- | src/VButton.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/VButton.h b/src/VButton.h index cab13cd..349b403 100644 --- a/src/VButton.h +++ b/src/VButton.h @@ -24,22 +24,21 @@ public: static double pw; static double ph; -private: +protected: bool press; bool inrpt; bool inside; - -protected: + bool isAlpha; unsigned int keycode; - TQString u; - TQString l; + TQString lowerText; + TQString shiftText; TQRect orig_size; void timerEvent ( TQTimerEvent * ); public slots: void sendKey(); - void shiftPressed(bool press); + void shiftCapsPressed(bool shift, bool caps); protected slots: void enterEvent(TQEvent *e); |