Add Ctrl+c binding for exiting hint mode
This commit is contained in:
parent
7f6b7acfeb
commit
f9d83a2836
|
@ -115,8 +115,8 @@ impl HintState {
|
||||||
'\x08' | '\x1f' => {
|
'\x08' | '\x1f' => {
|
||||||
self.keys.pop();
|
self.keys.pop();
|
||||||
},
|
},
|
||||||
// Cancel hint highlighting on ESC.
|
// Cancel hint highlighting on ESC/Ctrl+c.
|
||||||
'\x1b' => self.stop(),
|
'\x1b' | '\x03' => self.stop(),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue