This is hard for me to test conclusively because I have the default of `ctrl left/right` used to migrate between Spaces on macOS.
This commit is contained in:
@@ -300,14 +300,24 @@ impl TextArea {
|
|||||||
// Option/Right -> Alt+Right (next word end)
|
// Option/Right -> Alt+Right (next word end)
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
code: KeyCode::Left,
|
code: KeyCode::Left,
|
||||||
modifiers: KeyModifiers::ALT | KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::ALT,
|
||||||
|
..
|
||||||
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Left,
|
||||||
|
modifiers: KeyModifiers::CONTROL,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
self.set_cursor(self.beginning_of_previous_word());
|
self.set_cursor(self.beginning_of_previous_word());
|
||||||
}
|
}
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
code: KeyCode::Right,
|
code: KeyCode::Right,
|
||||||
modifiers: KeyModifiers::ALT | KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::ALT,
|
||||||
|
..
|
||||||
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Right,
|
||||||
|
modifiers: KeyModifiers::CONTROL,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
self.set_cursor(self.end_of_next_word());
|
self.set_cursor(self.end_of_next_word());
|
||||||
|
|||||||
Reference in New Issue
Block a user