Changeset View
Changeset View
Standalone View
Standalone View
keyboard_input.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | 655 | KeyEvent event(type, | |||
---|---|---|---|---|---|
656 | m_xkb->toQtKey(keySym), | 656 | m_xkb->toQtKey(keySym), | ||
657 | m_xkb->modifiers(), | 657 | m_xkb->modifiers(), | ||
658 | key, | 658 | key, | ||
659 | keySym, | 659 | keySym, | ||
660 | m_xkb->toString(keySym), | 660 | m_xkb->toString(keySym), | ||
661 | autoRepeat, | 661 | autoRepeat, | ||
662 | time, | 662 | time, | ||
663 | device); | 663 | device); | ||
664 | event.setModifiersRelevantForGlobalShortcuts(m_xkb->modifiersRelevantForGlobalShortcuts()); | ||||
664 | if (state == InputRedirection::KeyboardKeyPressed) { | 665 | if (state == InputRedirection::KeyboardKeyPressed) { | ||
665 | if (m_xkb->shouldKeyRepeat(key) && waylandServer()->seat()->keyRepeatDelay() != 0) { | 666 | if (m_xkb->shouldKeyRepeat(key) && waylandServer()->seat()->keyRepeatDelay() != 0) { | ||
666 | m_keyRepeat.timer->setInterval(waylandServer()->seat()->keyRepeatDelay()); | 667 | m_keyRepeat.timer->setInterval(waylandServer()->seat()->keyRepeatDelay()); | ||
667 | m_keyRepeat.key = key; | 668 | m_keyRepeat.key = key; | ||
668 | m_keyRepeat.time = time; | 669 | m_keyRepeat.time = time; | ||
669 | m_keyRepeat.timer->start(); | 670 | m_keyRepeat.timer->start(); | ||
670 | } | 671 | } | ||
671 | } else if (state == InputRedirection::KeyboardKeyReleased) { | 672 | } else if (state == InputRedirection::KeyboardKeyReleased) { | ||
Show All 31 Lines |