Skip to content

Commit 2f720b3

Browse files
committed
WhatsApp: Stop the reaction picker from switching to browse mode with NVDA... again.
1 parent b19d11a commit 2f720b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WhatsAppA11yFixes.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// @author James Teh <[email protected]>
66
// @copyright 2019-2026 Mozilla Corporation, Derek Riemer, James Teh
77
// @license Mozilla Public License version 2.0
8-
// @version 2026.1
8+
// @version 2026.2
99
// @include https://web.whatsapp.com/
1010
// ==/UserScript==
1111

@@ -200,7 +200,7 @@ const DYNAMIC_TWEAK_ATTRIBS = ["aria-label"];
200200
const DYNAMIC_TWEAKS = [
201201
{selector: '[role=dialog]',
202202
tweak: el => {
203-
if (el.querySelector('[role=button][aria-pressed] img')) {
203+
if (el.querySelector('button[aria-pressed] img')) {
204204
// This is the reaction picker. It contains buttons which wilh switch to
205205
// browse mode, but we want to use WhatsApp's own arrow key navigation
206206
// here. Therefore, use role="application". Menu would be more appropriate,

0 commit comments

Comments
 (0)