Consider Qt::KeypadModifier relevant for global shortcuts
Otherwise kglobalaccel can't distinguish between numbers on the num block and other numbers BUG: 453423 BUG: 446389
This commit is contained in:
parent
25150633ed
commit
296d3f31be
1 changed files with 3 additions and 0 deletions
|
@ -534,6 +534,9 @@ Qt::KeyboardModifiers Xkb::modifiersRelevantForGlobalShortcuts(uint32_t scanCode
|
|||
if (xkb_state_mod_index_is_active(m_state, m_metaModifier, XKB_STATE_MODS_EFFECTIVE) == 1) {
|
||||
mods |= Qt::MetaModifier;
|
||||
}
|
||||
if (m_keysym >= XKB_KEY_KP_Space && m_keysym <= XKB_KEY_KP_9) {
|
||||
mods |= Qt::KeypadModifier;
|
||||
}
|
||||
|
||||
Qt::KeyboardModifiers consumedMods = m_consumedModifiers;
|
||||
if ((mods & Qt::ShiftModifier) && (consumedMods == Qt::ShiftModifier)) {
|
||||
|
|
Loading…
Reference in a new issue