-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
CustomMenuItem accelerators don't trigger on_menu_event on Windows #451
Comments
good news, it works fine in Tao , bad news I can't find any reason why it is not working in Tauri but I can definitely replicate the issue. |
Alright, I can replicate it in Wry, seems like the webview hijacks the keyboard events from the underlying win32 window procedure. I will transfer it to Wry. |
Does it work if we set it to other shortcut? I think webview2 might occupy a few already. |
I have tried https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2controller?view=webview2-1.0.664.37#add_acceleratorkeypressed but it didn't work. I will look at the article you linked and dig into this again. |
Just took a look at the article and it can work (in a hacky way) for |
I will make this as upstream and wait until this is implemented |
Being that this has been open since 2021, I wonder if it makes sense to document a workaround? I'm guessing doing something through the frontend Javascript API? Simple key strokes like Ctrl+S for saving don't even work.... Thats kinda a big deal... |
hello,I encountered the same problem. Is there any progress on this issue? |
Hey, |
Describe the bug
CustomMenuItem accelerators in Windows don't trigger on_menu_event, though they do in macOS.
To Reproduce
Steps to reproduce the behavior:
yarn install
andyarn tauri dev
).Expected behavior
Both clicking the menu item and triggering it via its accelerator produce output in the terminal on Windows, since both actions work on macOS.
Screenshots
NA
Platform and Versions (required):
The text was updated successfully, but these errors were encountered: