fix: reset input idle timer when placing the cursor in an editor with the mouse
This is so that mouse clicks inside an editor widget may also trigger configured idle_actions.
This commit is contained in:
parent
36c975dc20
commit
7d740bfa2a
2 changed files with 6 additions and 0 deletions
|
|
@ -2502,6 +2502,7 @@ pub const Editor = struct {
|
|||
self.clamp_mouse();
|
||||
try self.send_editor_jump_destination();
|
||||
if (self.jump_mode) try self.goto_definition(.{});
|
||||
tui.reset_input_idle_timer();
|
||||
}
|
||||
|
||||
pub fn primary_double_click(self: *Self, y: c_int, x: c_int) !void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue