Bail out if key pressed is not in whitelist #2

Merged
vlw merged 1 commit from fix/bail-on-invalid-key into master 2026-08-22 16:19:12 +02:00
Owner

This PR adds a guard against keys pressed that are not in a whitelist. This fixes an issue where the page would always scroll up if a key is pressed that is not the up or down arrow key.

This PR adds a guard against keys pressed that are not in a whitelist. This fixes an issue where the page would always scroll up if a key is pressed that is _not_ the up or down arrow key.
vlw merged commit 5bde7231b6 into master 2026-08-22 16:19:12 +02:00
vlw deleted branch fix/bail-on-invalid-key 2026-08-22 16:19:12 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pastebin/userscript-reddit-arrow-key-scroll.js!2
No description provided.