vim: Fix jj to exit insert mode (#20890)
Release Notes: - (Preview only) fixed binding `jj` to exit insert mode
This commit is contained in:
parent
ad6a07e574
commit
3c57a4071c
1 changed files with 8 additions and 2 deletions
|
@ -3038,7 +3038,7 @@ impl<'a> WindowContext<'a> {
|
|||
return true;
|
||||
}
|
||||
|
||||
if let Some(input) = keystroke.ime_key {
|
||||
if let Some(input) = keystroke.with_simulated_ime().ime_key {
|
||||
if let Some(mut input_handler) = self.window.platform_window.take_input_handler() {
|
||||
input_handler.dispatch_input(&input, self);
|
||||
self.window.platform_window.set_input_handler(input_handler);
|
||||
|
@ -3482,7 +3482,13 @@ impl<'a> WindowContext<'a> {
|
|||
if !self.propagate_event {
|
||||
continue 'replay;
|
||||
}
|
||||
if let Some(input) = replay.keystroke.ime_key.as_ref().cloned() {
|
||||
if let Some(input) = replay
|
||||
.keystroke
|
||||
.with_simulated_ime()
|
||||
.ime_key
|
||||
.as_ref()
|
||||
.cloned()
|
||||
{
|
||||
if let Some(mut input_handler) = self.window.platform_window.take_input_handler() {
|
||||
input_handler.dispatch_input(&input, self);
|
||||
self.window.platform_window.set_input_handler(input_handler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue