-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeatable arrow keys #932
Conversation
There's a separate issue with the arrow keys that I'd like to address later: they're pretty janky sometimes. The biggest offender I've seen is websites (I only use Firefox), where the cursor is prone to snap back to a previous position when you've used the left/right arrows. This coincides with how web text is a lot less friendly with text selection and the like. From what I can tell, the cause seems to be word-composition. The issue doesn't occur with physical keyboards, which don't have any of that underlining/correction. Do we know why this happens? I recall a method "reset caches and return success" whose comment says that it should be called whenever the cursor has moved. I'd like to disrupt typical behavior as little as possible, but a brute-force option would be to temporarily disable that composition stuff whenever arrow events are happening. Here might offer some insight: sendDownUpKeyEvent()—"batch edits" 🤔 |
Please disable the repeat if the key has popup keys, this interacts quite badly.
As discussed and you summarized: that's fine.
I will add some function to |
Hmm, better to use |
Ideally the arrow keys would not result in a key event for exactly this reason. Probably it would be better if they behaved similar to space swipe with a single step. Though such a change might result in other issues, as some text fields only want key events. |
Yup, I've spent a fair bit of time looking at that stuff. The space-swipe approach is less bug-prone but less reliable in primitive situations.
Previews on icon-keys don't work well for some reason. The alignment for the preview and subsequent popup keys gets messed up. |
ddb5347
to
da649c2
Compare
Repetition is now disabled if a repeater has pop-ups. Ready to go on my end. |
Looks good, thanks! |
This patch improves support for the arrow keys in regular layouts:
For testing, here's a D-pad prototype that you can replace your numpad layout with: dpad_toy_retro.json
In a separate PR, I'd like to make the 1.2x scale factor for the toolbar arrow keys apply universally (directly to the drawables themselves). This one's ready for merge on my part.
Split from PR #925
Progress on #357