diff options
author | Ray-V <[email protected]> | 2021-04-16 13:55:39 +0100 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-07-14 09:45:41 +0900 |
commit | 59291a27f9349425be6397c402bd35d021dedffb (patch) | |
tree | e33be7a8cf3858d1470efb1b80153230eef26b62 /src | |
parent | 75ff5a57771ba875da3f96dc33a50255d226afa0 (diff) | |
download | kvkbd-59291a27f9349425be6397c402bd35d021dedffb.tar.gz kvkbd-59291a27f9349425be6397c402bd35d021dedffb.zip |
Add toggle for AltGr alpha characters key display when Caps is on
Signed-off-by: Ray-V <[email protected]>
(cherry picked from commit 907f3d61aa5cefc1d3768535ef8b9d2ba6d73007)
Diffstat (limited to 'src')
-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); } |