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

Signed-off-by: Ray-V <ray-v@inbox.lv>
pull/16/head
Ray-V 4 years ago committed by Michele Calgaro
parent d40b0d945f
commit 907f3d61aa
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 (caps)
{
if (shift) if (shift)
{
TQPushButton::setText(altGrShiftText.lower());
}
else
{
TQPushButton::setText(altGrText.upper());
}
}
else if (shift)
{ {
TQPushButton::setText(altGrShiftText); TQPushButton::setText(altGrShiftText);
} }

Loading…
Cancel
Save