| 1342 | } |
| 1343 | |
| 1344 | static std::optional<Options::MouseCommand> windowActionForTabletButtonPress(TabletToolButtonEvent *event, Window *window) |
| 1345 | { |
| 1346 | const auto button = event->button == BTN_STYLUS ? Qt::MiddleButton : Qt::RightButton; |
| 1347 | if (const auto command = globalWindowAction(button, input()->modifiersRelevantForGlobalShortcuts())) { |
| 1348 | return command; |
| 1349 | } else { |
| 1350 | return window->getMousePressCommand(button); |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | std::optional<Options::MouseCommand> globalWindowWheelAction(PointerAxisEvent *event) |
| 1355 | { |
no test coverage detected