fn process_mouse_bindings(&mut self, mods: ModifiersState, button: MouseButton) {
        for i in 0..self.ctx.config().ui_config.mouse_bindings.len() {
            let binding = &self.ctx.config().ui_config.mouse_bindings[i];

            if binding.is_triggered_by(*self.ctx.terminal().mode(), mods, &button, true) {
                // binding was triggered; run the action
                let mouse_mode_active =
                    !mods.shift && self.ctx.terminal().mode().intersects(TermMode::MOUSE_MODE);

                let binding = binding.clone();
                binding.execute(&mut self.ctx, mouse_mode_active);
            }
        }
    }
/// Attempt to find a binding and execute its action.
///
/// The provided mode, mods, and key must match what is allowed by a binding
/// for its action to be executed.
Attempt to find a binding and execute its action.
The provided mode, mods, and key must match what is allowed by a binding
for its action to be executed.
Attempt to find a binding and execute its action . The provided mode mods and key must match what is allowed by a binding for its action to be executed .
fn process_mouse_bindings(&mut self, mods: ModifiersState, button: MouseButton) {
        for i in 0..self.ctx.config().ui_config.mouse_bindings.len() {
            let binding = &self.ctx.config().ui_config.mouse_bindings[i];
            if binding.is_triggered_by(*self.ctx.terminal().mode(), mods, &button, true) {
                // binding was triggered; run the action
                let mouse_mode_active =
                    !mods.shift && self.ctx.terminal().mode().intersects(TermMode::MOUSE_MODE);
                let binding = binding.clone();
                binding.execute(&mut self.ctx, mouse_mode_active);
            }
        }
    }
fn process_mouse_bindings ( & mut self , mods : ModifiersState , button : MouseButton ) { for i in 0 .. self . ctx . config ( ) . ui_config . mouse_bindings . len ( ) { let binding = & self . ctx . config ( ) . ui_config . mouse_bindings [ i ] ; if binding . is_triggered_by ( * self . ctx . terminal ( ) . mode ( ) , mods , & button , true ) { // binding was triggered; run the action let mouse_mode_active = ! mods . shift && self . ctx . terminal ( ) . mode ( ) . intersects ( TermMode :: MOUSE_MODE ) ; let binding = binding . clone ( ) ; binding . execute ( & mut self . ctx , mouse_mode_active ) ; } } }
Attempt to find a binding and execute its action.
Attempt to find a binding and execute its action .
&mut self
mods
ModifiersState
button
MouseButton
&mut self
mods
ModifiersState
button
MouseButton