-
Notifications
You must be signed in to change notification settings - Fork 619
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
defineShortcut - minus button does not work #954
Comments
Hi @appinteractive, Thanks for the feedback, indeed However, I'm a bit confused about the combination of I explain that just to be sure we are on the same page. Do you try to use Shift in combination of Minus to detect the "on top" key? |
Hey @smarroufin thanks for your response. Exactly because I can't predict the character that is on the keyboard when pressing shift due to different layouts. I want the combination to always work, regardless of the keyboard layout. It's something that is often overlooked, for example a lot of sites use But with this particular issue here, none of the combinations with |
Ok, so in the first place my fix should be solving the And for your usecase @appinteractive, I have to say it's quite complex to handle, we will have to think of another "mode" to interpret shortcuts. I guess this is another way of interpreting things. And I unfortunately don't think of an easy/quick way of doing this. This will have to be kind of a feature/improvement. |
Yes, think of a floor plan editor, you want to be able to use more than one key in combination. That's a common use case for tools. Sadly, I can't find any reasonable source for best practices in that regard. |
I got you, totally legit usecase! |
I'm happy enough when the minus character works, as the rest is possible with the "whenever" prop already! 🥇 |
Environment
Version
v3.8.1
Reproduction
Description
I try to get the minus key
-
working on my QWERTZ keyboard withdefineShortcuts
but it will not get triggered at all.I tried
minus
,-
and copied the exact key code to be sure that the character is not altered in any way but still no luck. The plus button works like a charm, though.Context:
My goal is to use
Shift
+-
for my shortcut in the end, this reproduction got rid of it for testing.I tried
shift_-
in the first place and later used thewhenever
key in combination with theuseKeyModifier("Meta")
from vue-use.Additional context
German Keyboard, QWERTZ.
Logs
No response
The text was updated successfully, but these errors were encountered: