From 05b6eb66af8e82610ed05a2cb74c06d0937c6b95 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 13 May 2026 11:04:05 -0700 Subject: [PATCH] Remanaging `event.preventDefault()` from keyboardPan. This change allows default browser actions for keyboard events to occur in addition to the minimap's custom panning. Screenshots: http://screencast/cast/NTg2MTQ3NjE3NzgwNTMxMnw5YzhjZDdmYy1kNg PiperOrigin-RevId: 914953089 --- src/app/minimap/minimap.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/minimap/minimap.ts b/src/app/minimap/minimap.ts index c19f96b..dad36ed 100644 --- a/src/app/minimap/minimap.ts +++ b/src/app/minimap/minimap.ts @@ -178,7 +178,6 @@ export class Minimap implements OnChanges, OnInit { } keyboardPan(event: KeyboardEvent) { - event.preventDefault(); const scrollAmt = 10; switch (event.key) { @@ -197,7 +196,7 @@ export class Minimap implements OnChanges, OnInit { default: return; } - + event.preventDefault(); this.panByMinimapPos({x: this.viewboxX, y: this.viewboxY}); }