| 588 | } |
| 589 | |
| 590 | void InputEditorView::keyReleaseEvent(QKeyEvent *event) |
| 591 | { |
| 592 | /* Ignore auto-repeat events for hotkeys */ |
| 593 | if (event->isAutoRepeat()) |
| 594 | return QTableView::keyReleaseEvent(event); |
| 595 | |
| 596 | /* We accept hotkeys when this window has focus */ |
| 597 | keysym_t mod = convertQtModifiers(event->modifiers()); |
| 598 | keysym_t ks = context->config.km->nativeToKeysym(event->nativeVirtualKey()); |
| 599 | |
| 600 | if (context->config.km->hotkey_mapping.find(ks | mod) != context->config.km->hotkey_mapping.end()) { |
| 601 | HotKey hk = context->config.km->hotkey_mapping[ks | mod]; |
| 602 | context->hotkey_released_queue.push(hk.type); |
| 603 | return; |
| 604 | } |
| 605 | if (context->config.km->hotkey_mapping.find(ks) != context->config.km->hotkey_mapping.end()) { |
| 606 | HotKey hk = context->config.km->hotkey_mapping[ks]; |
| 607 | context->hotkey_released_queue.push(hk.type); |
| 608 | return; |
| 609 | } |
| 610 | |
| 611 | return QTableView::keyReleaseEvent(event); |
| 612 | } |
| 613 | |
| 614 | void InputEditorView::horizontalMenu(QPoint pos) |
| 615 | { |
nothing calls this directly
no test coverage detected