Bind a scroll trigger to an action.
(
&mut self,
modifiers: keyboard::Modifiers,
action: ScrollAction,
)
| 153 | |
| 154 | /// Bind a scroll trigger to an action. |
| 155 | pub fn bind_scroll( |
| 156 | &mut self, |
| 157 | modifiers: keyboard::Modifiers, |
| 158 | action: ScrollAction, |
| 159 | ) -> &mut Self { |
| 160 | self.scroll.insert(modifiers, action); |
| 161 | self |
| 162 | } |
| 163 | |
| 164 | /// Remove a scroll binding. |
| 165 | pub fn unbind_scroll(&mut self, modifiers: keyboard::Modifiers) -> Option<ScrollAction> { |
no outgoing calls
no test coverage detected