mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-04 07:09:06 +00:00
Reformulate seamless paste documentation
This commit is contained in:
parent
51d969b20c
commit
31cee2c49f
4 changed files with 32 additions and 30 deletions
|
@ -563,7 +563,7 @@ Also see [issue #14].
|
||||||
_`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
|
_`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
|
||||||
|
|
||||||
| Action | Shortcut
|
| Action | Shortcut
|
||||||
| ------------------------------------------- |:-----------------------------
|
| ---------------------------------------------------- |:-----------------------------
|
||||||
| Switch fullscreen mode | `Meta`+`f`
|
| Switch fullscreen mode | `Meta`+`f`
|
||||||
| Rotate display left | `Meta`+`←` _(left)_
|
| Rotate display left | `Meta`+`←` _(left)_
|
||||||
| Rotate display right | `Meta`+`→` _(right)_
|
| Rotate display right | `Meta`+`→` _(right)_
|
||||||
|
@ -584,11 +584,12 @@ _`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
|
||||||
| Collapse notification panel | `Meta`+`Shift`+`n`
|
| Collapse notification panel | `Meta`+`Shift`+`n`
|
||||||
| Copy device clipboard to computer | `Meta`+`c`
|
| Copy device clipboard to computer | `Meta`+`c`
|
||||||
| Paste computer clipboard to device | `Meta`+`v`
|
| Paste computer clipboard to device | `Meta`+`v`
|
||||||
| Copy computer clipboard to device and paste | `Meta`+`Shift`+`v`
|
| Copy computer clipboard to device, then press PASTE³ | `Meta`+`Shift`+`v`
|
||||||
| Enable/disable FPS counter (on stdout) | `Meta`+`i`
|
| Enable/disable FPS counter (on stdout) | `Meta`+`i`
|
||||||
|
|
||||||
_¹Double-click on black borders to remove them._
|
_¹Double-click on black borders to remove them._
|
||||||
_²Right-click turns the screen on if it was off, presses BACK otherwise._
|
_²Right-click turns the screen on if it was off, presses BACK otherwise._
|
||||||
|
_³Only if the device runs Android >= 7._
|
||||||
|
|
||||||
|
|
||||||
## Custom paths
|
## Custom paths
|
||||||
|
|
|
@ -285,7 +285,7 @@ Paste computer clipboard to device
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B Meta+Shift+v
|
.B Meta+Shift+v
|
||||||
Copy computer clipboard to device (and paste if the device runs Android >= 7)
|
Copy computer clipboard to device, then press PASTE (Android >= 7)
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B Meta+i
|
.B Meta+i
|
||||||
|
|
|
@ -251,8 +251,8 @@ scrcpy_print_usage(const char *arg0) {
|
||||||
" Paste computer clipboard to device\n"
|
" Paste computer clipboard to device\n"
|
||||||
"\n"
|
"\n"
|
||||||
" " MOD "+Shift+v\n"
|
" " MOD "+Shift+v\n"
|
||||||
" Copy computer clipboard to device (and paste if the device\n"
|
" Copy computer clipboard to device, then press PASTE (Android\n"
|
||||||
" runs Android >= 7)\n"
|
" >= 7)\n"
|
||||||
"\n"
|
"\n"
|
||||||
" " MOD "+i\n"
|
" " MOD "+i\n"
|
||||||
" Enable/disable FPS counter (print frames/second in logs)\n"
|
" Enable/disable FPS counter (print frames/second in logs)\n"
|
||||||
|
|
|
@ -347,10 +347,11 @@ input_manager_process_key(struct input_manager *im,
|
||||||
case SDLK_v:
|
case SDLK_v:
|
||||||
if (control && !repeat && down) {
|
if (control && !repeat && down) {
|
||||||
if (shift) {
|
if (shift) {
|
||||||
// store the text in the device clipboard and paste
|
// Store the text in the device clipboard, then press
|
||||||
|
// PASTE
|
||||||
set_device_clipboard(controller, true);
|
set_device_clipboard(controller, true);
|
||||||
} else {
|
} else {
|
||||||
// inject the text as input events
|
// Inject the text as input events
|
||||||
clipboard_paste(controller);
|
clipboard_paste(controller);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue