handle_mouse

Function handle_mouse 

Source
pub fn handle_mouse(event: MouseEvent) -> Action
Expand description

Handle mouse events and return corresponding action.

§Arguments

  • event - The mouse event from crossterm

§Returns

The corresponding action for the mouse event, or Action::None if the event is not mapped to any action.