diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-03-15 10:50:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-03-15 11:20:18 +0900 |
| commit | 37c26178be0e54dc42908b1cc5d7ec4802aff85b (patch) | |
| tree | 2dedbcc64a1110bd2bc08fabb45a9d5e4ee5cfe3 /src/VButton.h | |
| parent | 670268c0714ce4754cac757a4b13cc0fcdb71bd6 (diff) | |
| download | kvkbd-37c26178be0e54dc42908b1cc5d7ec4802aff85b.tar.gz kvkbd-37c26178be0e54dc42908b1cc5d7ec4802aff85b.zip | |
Fixed behavior of caps for non-alpha characters, which was broken in
commit 1865767.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 48c1053fa1e5896a10e576b9eb35634fa789cff4)
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); |
