From f48da12c16c357913c47a93071da920977a07801 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 16 Jan 2018 11:24:19 -0800 Subject: [PATCH] Prevent event propagation when handled by nav mode --- src/AccessibilityManager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AccessibilityManager.ts b/src/AccessibilityManager.ts index 20da65e2..a2504d3b 100644 --- a/src/AccessibilityManager.ts +++ b/src/AccessibilityManager.ts @@ -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;