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

fix(keyboard): bind zoom in to = key #498

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

barmac
Copy link
Member

@barmac barmac commented Nov 6, 2020

This is required for the feature to work on international
keyboard layout.

Related to bpmn-io/bpmn-js#1362

Acceptance Criteria

  • Corresponds to the concept
  • Corresponds to the design

Definition of Done

This is required for the feature to work on international
keyboard layout.

Related to bpmn-io/bpmn-js#1362
@barmac
Copy link
Member Author

barmac commented Nov 12, 2020

@pinussilvestrus @nikku Can you please review this?

@pinussilvestrus
Copy link
Contributor

For my understanding (also cf. the discussion starting here: bpmn-io/bpmn-js#1362 (comment)):

This fix shouldn't cause that CMD+= triggers the zoom on German keyboards as well, right? Since this resolves to key 0.

That's at least what I'd expect and it looks like it's working. Don't have an international keyboard, so I can only verify it does not break the existing behavior on German keyboard.

@nikku
Copy link
Member

nikku commented Nov 12, 2020

This fix shouldn't cause that CMD+= triggers the zoom on German keyboards as well, right? Since this resolves to key 0.

Good point and makes me more confident in the solution suggested. I'll double check the behavior on Linux. Maybe we can give this a quick 👍 and merge.

@barmac
Copy link
Member Author

barmac commented Nov 12, 2020

To sum up the concerns, this change could be a problem only in a keyboard layout where you can type = but it's not coupled with + on the same keyboard key. Only in that situation you could be surprised with the result of Cmd + [=]. I checked also AZERTY layout and it's not the case there.

@pinussilvestrus
Copy link
Contributor

To sum up the concerns, this change could be a problem only in a keyboard layout where you can type = but it's not coupled with + on the same keyboard key. Only in that situation you could be surprised with the result of Cmd + [=]. I checked also AZERTY layout and it's not the case there.

So far I can't think about or even know a keyboard layout where this is the case. I think it's okay to merge this one (if it's working on all platforms) and wait for a response in case this breaks on any keyboard.

@barmac
Copy link
Member Author

barmac commented Nov 12, 2020

I looked through Wikipedia and found some layouts I haven't heard of which could potentially run into this issue: JCUKEN (Latin), BÉPO and Blickensderfer. Still, for them it's just a second shortcut, but the first one for international (and Polish as well) layout users.

@nikku nikku merged commit 4110b38 into master Nov 12, 2020
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 12, 2020
@fake-join fake-join bot deleted the fix-zoom-in-shortcut-for-internationals branch November 12, 2020 17:56
@nikku
Copy link
Member

nikku commented Nov 12, 2020

Did not see any side-effects on Linux.

Cannot reproduce the CTRL/CMD behavior (bpmn-io/bpmn-js#1362 (comment)), too. So that one seems to be a MacOS specific thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants