mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Prevent event propagation when handled by nav mode
This commit is contained in:
@@ -298,6 +298,8 @@ class NavigationMode implements IDisposable {
|
||||
|
||||
private _onKey(e: KeyboardEvent, handler: (e: KeyboardEvent) => boolean): boolean {
|
||||
if (handler && handler(e)) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user