-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Copy/Paste and Other Keyboard Shortcuts Do Not Work on MacOS #2397
Comments
You can fix this by adding a menu |
sorry to resurrect this but i m having the same issues(macos as well), even after following the Creating a menu instructions to the letter. Cannot use cmd+c nor cmd+v which is killing my mojo b/c this is a text editing app. Edit: followed both 1055 and 2398 but couldn't understand if this should already work or not. Edit 2: i'm a bit embarrassed but browsing through the examples/api manage to point me into the right direction; copy/paste actually works :D. Would really appreciated any advice, |
I try the solution you have mentioned, but cmd+c and cmd+v still do not work. Can you tell me the Edit 2? |
I've read examples/api carefully . you are right ! |
nope, still not working. Any update? |
@serkandemirel0420 it does work, join our discord and we will help you triage it. |
Think the API has changed now, as none of the docs are the same and links in this thread are broken. For anyone trying to maintain an app on the old API I was able to fix this by having a dedicated Edit menu: let file_menu = Submenu::new("File", Menu::new().add_item(new_thread).add_item(history).add_item(quit));
let edit_menu = Submenu::new("Edit", Menu::new().add_native_item(MenuItem::Copy).add_native_item(MenuItem::Paste).add_native_item(MenuItem::SelectAll));
Menu::new().add_submenu(file_menu).add_submenu(edit_menu) |
Describe the bug
Keyboard shortcuts on MacOS such as
cmd/a
,cmd/c
,cmd/v
,cmd/x
,cmd/z
, and others do not work in the Tauri window. Right-click context menus do behave correctly, but using the keyboard shortcuts for equivalent actions create the system error sound.To Reproduce
npm run tauri dev
and attempt to use keyboard shortcuts to manipulate the field.Expected behavior
The respective keyboard shortcut to do its default function.
Platform and Versions (required):
Additional context
Currently running on a MacOS 12.0.0 Public Beta, but this keyboard shortcut error doesn't appear in any other application. Some others were reporting this problem on #1055.
Edit: HTML markup
The text was updated successfully, but these errors were encountered: