Prevent event propagation when handled by nav mode

This commit is contained in:
Daniel Imms
2018-01-16 11:24:19 -08:00
parent 3fa4b4941f
commit f48da12c16
+2
View File
@@ -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;