Fixed issue where the NextScreen action would never have an effect
This commit is contained in:
parent
5a29a74956
commit
cd2d593a6c
2 changed files with 3 additions and 4 deletions
|
@ -184,7 +184,6 @@ actions!(
|
||||||
Paste,
|
Paste,
|
||||||
Undo,
|
Undo,
|
||||||
Redo,
|
Redo,
|
||||||
NextScreen,
|
|
||||||
MoveUp,
|
MoveUp,
|
||||||
PageUp,
|
PageUp,
|
||||||
MoveDown,
|
MoveDown,
|
||||||
|
|
|
@ -64,15 +64,15 @@ impl Editor {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.context_menu.as_mut()?;
|
if self.mouse_context_menu.read(cx).visible() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
if matches!(self.mode, EditorMode::SingleLine) {
|
if matches!(self.mode, EditorMode::SingleLine) {
|
||||||
cx.propagate_action();
|
cx.propagate_action();
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.request_autoscroll(Autoscroll::Next, cx);
|
self.request_autoscroll(Autoscroll::Next, cx);
|
||||||
|
|
||||||
Some(())
|
Some(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue