Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1800 Lines • ▼ Show 20 Line(s) | |||||
1801 | 1801 | | |||
1802 | Qt::KeyboardModifiers InputRedirection::modifiersRelevantForGlobalShortcuts() const | 1802 | Qt::KeyboardModifiers InputRedirection::modifiersRelevantForGlobalShortcuts() const | ||
1803 | { | 1803 | { | ||
1804 | return m_keyboard->modifiersRelevantForGlobalShortcuts(); | 1804 | return m_keyboard->modifiersRelevantForGlobalShortcuts(); | ||
1805 | } | 1805 | } | ||
1806 | 1806 | | |||
1807 | void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action) | 1807 | void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action) | ||
1808 | { | 1808 | { | ||
1809 | m_shortcuts->registerShortcut(action, shortcut); | | |||
1810 | kwinApp()->platform()->setupActionForGlobalAccel(action); | 1809 | kwinApp()->platform()->setupActionForGlobalAccel(action); | ||
1811 | } | 1810 | } | ||
1812 | 1811 | | |||
1813 | void InputRedirection::registerPointerShortcut(Qt::KeyboardModifiers modifiers, Qt::MouseButton pointerButtons, QAction *action) | 1812 | void InputRedirection::registerPointerShortcut(Qt::KeyboardModifiers modifiers, Qt::MouseButton pointerButtons, QAction *action) | ||
1814 | { | 1813 | { | ||
1815 | m_shortcuts->registerPointerShortcut(action, modifiers, pointerButtons); | 1814 | m_shortcuts->registerPointerShortcut(action, modifiers, pointerButtons); | ||
1816 | } | 1815 | } | ||
1817 | 1816 | | |||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |