Remove RCtrl+Shift+v paste shortcut

Now that LCtrl+v synchronize the computer clipboard to the device
clipboard, RCtrl+Shift+v is not needed anymore.

Note: RCtrl+v is kept to send the computer clipboard content as a
sequence of keys.
This commit is contained in:
Romain Vimont
2020-06-01 15:45:00 +02:00
parent b3aa88c751
commit 8a037e3d9b
4 changed files with 3 additions and 19 deletions

View File

@@ -285,10 +285,6 @@ Copy device clipboard to computer
.B RCtrl+v
Paste computer clipboard to device
.TP
.B RCtrl+Shift+v
Copy computer clipboard to device (and paste if the device runs Android >= 7)
.TP
.B RCtrl+i
Enable/disable FPS counter (print frames/second in logs)

View File

@@ -248,10 +248,6 @@ scrcpy_print_usage(const char *arg0) {
" RCtrl+v\n"
" Paste computer clipboard to device\n"
"\n"
" RCtrl+Shift+v\n"
" Copy computer clipboard to device (and paste if the device\n"
" runs Android >= 7)\n"
"\n"
" RCtrl+i\n"
" Enable/disable FPS counter (print frames/second in logs)\n"
"\n"

View File

@@ -347,14 +347,9 @@ input_manager_process_key(struct input_manager *im,
}
return;
case SDLK_v:
if (control && !repeat && down) {
if (shift) {
// store the text in the device clipboard and paste
set_device_clipboard(controller, true);
} else {
// inject the text as input events
clipboard_paste(controller);
}
if (control && !shift && !repeat && down) {
// Inject the text as input events
clipboard_paste(controller);
}
return;
case SDLK_f: