diff options
author | Ray-V <[email protected]> | 2021-04-16 13:55:39 +0100 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-07-13 10:00:16 +0900 |
commit | 907f3d61aa5cefc1d3768535ef8b9d2ba6d73007 (patch) | |
tree | 594e6677317f1612793e745a4055d1d8ec19433e /src/VButton.cpp | |
parent | d40b0d945f2a2d56768dd1d97a9a823113a1199d (diff) | |
download | kvkbd-907f3d61aa5cefc1d3768535ef8b9d2ba6d73007.tar.gz kvkbd-907f3d61aa5cefc1d3768535ef8b9d2ba6d73007.zip |
Add toggle for AltGr alpha characters key display when Caps is on
Signed-off-by: Ray-V <[email protected]>
Diffstat (limited to 'src/VButton.cpp')
-rw-r--r-- | src/VButton.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/VButton.cpp b/src/VButton.cpp index 95d31e2..c0ce411 100644 --- a/src/VButton.cpp +++ b/src/VButton.cpp @@ -91,8 +91,19 @@ void VButton::shiftCapsAltGrPressed(bool shift, bool caps, bool altGrState) { if (altGrState) { - // Caps does not seem to make any difference when AltGr is pressed - if (shift) + // If Caps is on, displayed alpha characters should be toggled from the AltGr case + if (caps) + { + if (shift) + { + TQPushButton::setText(altGrShiftText.lower()); + } + else + { + TQPushButton::setText(altGrText.upper()); + } + } + else if (shift) { TQPushButton::setText(altGrShiftText); } |