aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit 52ac259143b6d84dfef12a680b3415c8f058546d
parent a3c0c027bdee5b1893b6dfb3df89ba212194eae3
Author: anon <anon@example.com>
Date:   Sat, 24 Oct 2026 07:00:28 +0000

Hide the game canvas focus outline while preserving native Tab targeting

Diffstat:
MTODO.md | 7++++++-
Mclient/browser/index.html | 2+-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -802,12 +802,17 @@ and server restarts. Turn every reproduced bug into a focused regression test. repeated Tab presses cycle player/NPC/monster targets without moving focus to Chrome's address bar; text fields and controls outside the game retain normal keyboard navigation. Verify in Chrome with manual keyboard input. -- [ ] Remove the blue border around the focused game page in Chrome. Check: +- [x] Remove the blue border around the focused game page in Chrome. Check: identify whether the canvas focus outline draws it and adjust its styling without changing keyboard focus, Tab target cycling or Shift+Tab handling. Retest entering/leaving the game and ordinary page controls; retain useful focus indicators for those controls. Tab capture already works well in the user's Chrome test, so preserve that behavior. + Chrome's canvas focus ring was `rgb(168, 199, 250) auto 1px`; canvas-only + outline styling now removes it while retaining keyboard focus. Hardware + Chromium verified repeated native Tab/Shift+Tab targeting, Options controls' + unchanged focus rings, reverse navigation and returning to game targeting. + Captures and checks: `local/focus-outline-smoke/verification.json`. - [ ] Reproduce and resolve disappearing equipment. Check: create and assign items, then equip/unequip them through the native client; every instance is accounted for in inventory, equipment or an explicit rejection, including diff --git a/client/browser/index.html b/client/browser/index.html @@ -8,7 +8,7 @@ html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #111; color: #ddd; font: 14px sans-serif; } @font-face { font-family: GameVerdana; src: url('browser-assets/fonts/verdana.ttf'); } #game-surface { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } - canvas { display: block; width: 100%; height: 100%; touch-action: none; } + canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; } button, select, input { font: inherit; } button { min-height: 44px; } #game-toolbar { position: absolute; top: max(24px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); display: flex; gap: 8px; }