summaryrefslogtreecommitdiffstats
path: root/src/VButton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-03-16 11:57:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-03-16 11:57:25 +0900
commitaf106fa553fb2f706910686a0e30f909582bca7d (patch)
tree7627b54658ca1c8a6cd44ef7b3bfdad3440b6cf6 /src/VButton.cpp
parent26c5e3891f5e9e6343e587731a93f4438539179e (diff)
downloadkvkbd-af106fa553fb2f706910686a0e30f909582bca7d.tar.gz
kvkbd-af106fa553fb2f706910686a0e30f909582bca7d.zip
Fixed visualization of key text the first time modifier keys are
pressed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> This commit also include a small part of Ray's patch to fix visualization of & if it is on a lower character position. Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/VButton.cpp')
-rw-r--r--src/VButton.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/VButton.cpp b/src/VButton.cpp
index c949612..e44feba 100644
--- a/src/VButton.cpp
+++ b/src/VButton.cpp
@@ -51,6 +51,8 @@ void VButton::shiftCapsPressed(bool shift, bool caps)
void VButton::setText(const TQString& text)
{
+ // Need to set the pushbutton text to correctly handle those buttons which usually
+ // don't change (tab, shift, caps, Fn, ...)
TQPushButton::setText(text);
lowerText = text;
isAlpha = text.length() == 1 && (text.upper() != text);