From 221d437a4bb3edd596df61eeb23fce3a63331091 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 16 Mar 2021 11:57:25 +0900 Subject: Fixed visualization of key text the first time modifier keys are pressed. Signed-off-by: Michele Calgaro 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 Signed-off-by: Michele Calgaro (cherry picked from commit af106fa553fb2f706910686a0e30f909582bca7d) --- src/VButton.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/VButton.cpp') 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); -- cgit v1.2.3