| 1586 | } |
| 1587 | |
| 1588 | void InputBindings::captureScroll(int mods, std::optional<int> chord_key) { |
| 1589 | if (!capture_state_.active) |
| 1590 | return; |
| 1591 | if (!(describe(capture_state_.action).allowed_kinds & TRIGGER_KIND_MOUSE_SCROLL)) { |
| 1592 | return; |
| 1593 | } |
| 1594 | MouseScrollTrigger trigger{mods & MODIFIER_MASK, chord_key}; |
| 1595 | setBinding(capture_state_.mode, capture_state_.action, trigger); |
| 1596 | capture_state_.captured = trigger; |
| 1597 | capture_state_.active = false; |
| 1598 | } |
| 1599 | |
| 1600 | void InputBindings::updateCapture() { |
| 1601 | if (!capture_state_.active || !capture_state_.waiting_for_double_click) |
no outgoing calls
no test coverage detected