mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-29 15:53:38 -05:00
Cleanup: use break rather than nested if/else constructs.
This commit is contained in:
parent
6b33298a6e
commit
3fcfc348ed
@ -632,30 +632,32 @@ void AutoTypePlatformX11::SendKeyPressedEvent(KeySym keysym, unsigned int shift)
|
||||
XkbTranslateKeyCode(kbd, keycode, 0, &mods_rtrn, &ks);
|
||||
if (ks == keysym) {
|
||||
shift &= ~m_altgrMask;
|
||||
shift &= ~ShiftMask;
|
||||
found = TRUE;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
XkbTranslateKeyCode(kbd, keycode, ShiftMask, &mods_rtrn, &ks);
|
||||
if (ks == keysym) {
|
||||
shift &= ~m_altgrMask;
|
||||
shift |= ShiftMask;
|
||||
found = TRUE;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
XkbTranslateKeyCode(kbd, keycode, Mod5Mask, &mods_rtrn, &ks);
|
||||
if (ks == keysym) {
|
||||
shift &= ~ShiftMask;
|
||||
shift |= m_altgrMask;
|
||||
found = TRUE;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
XkbTranslateKeyCode(kbd, keycode, Mod5Mask, &mods_rtrn, &ks);
|
||||
if (ks == keysym) {
|
||||
shift |= ShiftMask | m_altgrMask;
|
||||
found = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (found) break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user