-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
The browser zoom out is inconsistent when using bpmn keyboard controls binding. #1362
Comments
Hi Niklas, Yes they are my environment details,and i also checked it on Firefox 75.0 (64 -bit )version i could see same issue. |
What are you focusing on while you're using the keyboard shortcuts? The Canvas, one of the Components of the BPMN Modeler (Palette, Context Pad, ...), or are you focusing outside of the viewport? |
@barmac thats so helpful,thanks for capturing the screen recording. |
@pinussilvestrus my focus is on canvas itself,but still the same issue happens. |
Thanks for sharing @barmac! Interesting that it works for me on Chrome 86 |
@pinussilvestrus i upgraded my chrome to 86.0 still see same issue.So im attaching zip file for you to check.Thanks ! |
@barmac could you double-check whether this a general problem with |
I will do that. |
Chrome 86 with vanilla |
any updates ?would be nice to know if there is any update or workaround.Thanks ! |
@barmac any guess? I'm still unable to reproduce it, although we seem to use the same setup (Chrome 86 + MacOS). |
I got it. It's the matter of the keyboard layout. If you press button with So to fix this, I believe we should add mapping for |
This is required for the feature to work on international keyboard layout. Related to bpmn-io/bpmn-js#1362
This will be fixed via bpmn-io/diagram-js#498 |
How can this be? I thought the browser would pass on the actual key being pressed? |
It does until you press the key together with Control or Command. Then, the event always contains the basic |
By basic I mean the value without |
Well then, is there a way to handle this one properly via key codes then? The implication of your suggested change would be that |
This is exactly what I'd like to avoid, if that is possible. |
If we switch to keyCode, zoom in will be triggered for accent letters on the German keyboard: ´´ (the first one to the left from Backspace). |
@barmac Thanks for taking this in progress, so will this issue be addressed in specific next release ? |
If we merge the fix, then it should be incorporated in the next issue. |
Fixed with |
@nikku just wanted to confirm v7.4.1 is it released ? and which is the exact module that this library refers too ? |
The v7.4.1 of |
Thanks @barmac . |
Hi There,
I have added below line of code for keyboard controls.
keyboard: { bindTo: document },
Issue is happening when user uses browser (command and + ),(command and -)the (cmd and -) has inconsistent behavior only canvas zooms out but not whole page.
Any help or suggestion would be highly appreciated.Thank you !
Steps to Reproduce:-
3.You will notice for zoom in the whole page zooms when using keyboard controls but for zoom out only canvas zooms out not whole page.
Environment:-
The text was updated successfully, but these errors were encountered: