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

[bug] Can't paste text via sysytem shortcut key #3395

Closed
zhanglun opened this issue Feb 11, 2022 · 3 comments
Closed

[bug] Can't paste text via sysytem shortcut key #3395

zhanglun opened this issue Feb 11, 2022 · 3 comments
Labels
status: invalid This is not a valid issue type: bug

Comments

@zhanglun
Copy link

Describe the bug

I add <input type="text" /> for inputing. It can input via keyboard, but can't paste text via cmd + v on MacOS.

Reproduction

  1. create a input element
  2. try to paste text via sysytem shortcut key, it doest't work

Expected behavior

paste text into inputs via shortcut key

Platform and versions

Operating System - Mac OS, version 12.1.0 X64

Node.js environment
  Node.js - 14.17.0
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.13
  yarn - 1.22.15

Rust environment
  rustc - 1.58.0
  cargo - 1.58.0

App directory structure
/node_modules
/public
/src-tauri
/build
/.idea
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../build
  devPath - http://localhost:3000
  framework - React

Stack trace

No response

Additional context

No response

@amrbashir
Copy link
Member

amrbashir commented Feb 11, 2022

duplicate of #2397

tldr: on macOS you need to add a menu with native copy+paste+cut, it can be on macOS only if you want using #[cfg(target_os="macos")]

@zhanglun
Copy link
Author

Thanks a lot, I'll give it a try

duplicate of #2397

tldr: on macOS you need to add a menu with native copy+paste+cut, it can be on macOS only if you want using #[cfg(target_os="macos")]

@ssbunny
Copy link

ssbunny commented Mar 24, 2022

Thanks a lot, I'll give it a try too.

@lucasfernog lucasfernog added status: invalid This is not a valid issue and removed status: duplicate labels Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid This is not a valid issue type: bug
Projects
None yet
Development

No branches or pull requests

4 participants