Skip to content
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

Zoom in/out with shortcut misbehaves on key repeat #1930

Open
justvanrossum opened this issue Jan 10, 2025 · 1 comment
Open

Zoom in/out with shortcut misbehaves on key repeat #1930

justvanrossum opened this issue Jan 10, 2025 · 1 comment
Labels
cosmetic bug Something doesn't look quite right user experience An issue with the user experience

Comments

@justvanrossum
Copy link
Collaborator

It will zoom the entire UI, which can mess up everything.

This may be a general problem with actions, but I'm not sure yet where exactly this needs to be fixed.

This happens both in the editor and in the font overview.

@justvanrossum justvanrossum added cosmetic bug Something doesn't look quite right user experience An issue with the user experience labels Jan 10, 2025
@justvanrossum justvanrossum moved this to 📋 Backlog in Fontra Project Jan 10, 2025
@qwerasd205
Copy link

It seems that all repeated keys are thrown out in the shortcut handling.

export function getActionIdentifierFromKeyEvent(event) {
if (event.repeat) {
return null;
}

This is especially bad with the undo shortcut in Safari, since when it's thrown out it doesn't preventDefault, which causes Safari to receive the event, and Safari's behavior is to open recently closed tabs.

Luckily this should be an easy fix, though there may be a good reason for throwing out repeated events that I'm not aware of. If some key combos should only happen once even with held keys then perhaps it should be configured per shortcut whether repeated events are consumed silently or respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic bug Something doesn't look quite right user experience An issue with the user experience
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants