Return whether a scroll trigger is bound to an action.
(&self, modifiers: keyboard::Modifiers, action: ScrollAction)
| 181 | |
| 182 | /// Return whether a scroll trigger is bound to an action. |
| 183 | pub fn scroll_is_bound(&self, modifiers: keyboard::Modifiers, action: ScrollAction) -> bool { |
| 184 | self.scroll.get(&modifiers).copied() == Some(action) |
| 185 | } |
| 186 | |
| 187 | /// Bind a mouse click trigger to an action. |
| 188 | pub fn bind_click(&mut self, button: mouse::Button, action: ClickAction) -> &mut Self { |