Add toggle for AltGr alpha characters key display when Caps is on

Signed-off-by: Ray-V <ray-v@inbox.lv>
(cherry picked from commit 907f3d61aa)
r14.0.x
Ray-V 4 years ago committed by Michele Calgaro
parent 75ff5a5777
commit 59291a27f9
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -91,8 +91,19 @@ void VButton::shiftCapsAltGrPressed(bool shift, bool caps, bool altGrState)
{ {
if (altGrState) if (altGrState)
{ {
// Caps does not seem to make any difference when AltGr is pressed // If Caps is on, displayed alpha characters should be toggled from the AltGr case
if (shift) if (caps)
{
if (shift)
{
TQPushButton::setText(altGrShiftText.lower());
}
else
{
TQPushButton::setText(altGrText.upper());
}
}
else if (shift)
{ {
TQPushButton::setText(altGrShiftText); TQPushButton::setText(altGrShiftText);
} }

Loading…
Cancel
Save