WIP remove Meta+Shift+v

This commit is contained in:
Romain Vimont 2020-05-30 01:48:58 +02:00
parent b330ba448b
commit 8da10eb4af
4 changed files with 3 additions and 18 deletions

View File

@ -585,7 +585,6 @@ _`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
| Press COPY³, then Copy device clipboard to computer | `Meta`+`c` | Press COPY³, then Copy device clipboard to computer | `Meta`+`c`
| Press CUT³ | `Meta`+`x` | Press CUT³ | `Meta`+`x`
| Paste computer clipboard to device | `Meta`+`v` | Paste computer clipboard to device | `Meta`+`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._

View File

@ -287,10 +287,6 @@ Press CUT (Android >= 7)
.B Meta+v .B Meta+v
Paste computer clipboard to device Paste computer clipboard to device
.TP
.B Meta+Shift+v
Copy computer clipboard to device, then press PASTE (Android >= 7)
.TP .TP
.B Meta+i .B Meta+i
Enable/disable FPS counter (print frames/second in logs) Enable/disable FPS counter (print frames/second in logs)

View File

@ -254,10 +254,6 @@ scrcpy_print_usage(const char *arg0) {
" " MOD "+v\n" " " MOD "+v\n"
" Paste computer clipboard to device\n" " Paste computer clipboard to device\n"
"\n" "\n"
" " MOD "+Shift+v\n"
" Copy computer clipboard to device, then press PASTE (Android\n"
" >= 7)\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"
"\n" "\n"

View File

@ -361,15 +361,9 @@ input_manager_process_key(struct input_manager *im,
} }
return; return;
case SDLK_v: case SDLK_v:
if (control && !repeat && down) { if (control && !shift && !repeat && down) {
if (shift) { // Inject the text as input events
// Store the text in the device clipboard, then press clipboard_paste(controller);
// PASTE
set_device_clipboard(controller, true);
} else {
// Inject the text as input events
clipboard_paste(controller);
}
} }
return; return;
case SDLK_f: case SDLK_f: