summaryrefslogtreecommitdiffstats
path: root/src/VButton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VButton.cpp')
-rw-r--r--src/VButton.cpp15
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);
}