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 c65b3f1f0b
commit 8700ad74b9
4 changed files with 3 additions and 19 deletions

View File

@ -494,8 +494,6 @@ It is possible to synchronize clipboards between the computer and the device, in
both directions:
- `RCtrl`+`c` copies the device clipboard to the computer clipboard;
- `RCtrl`+`Shift`+`v` copies the computer clipboard to the device clipboard
(and pastes if the device runs Android >= 7);
- `RCtrl`+`v` _pastes_ the computer clipboard as a sequence of text events (but
breaks non-ASCII characters).
@ -585,7 +583,6 @@ device).
| Collapse notification panel | `RCtrl`+`Shift`+`n`
| Copy device clipboard to computer | `RCtrl`+`c`
| Paste computer clipboard to device | `RCtrl`+`v`
| Copy computer clipboard to device and paste | `RCtrl`+`Shift`+`v`
| Enable/disable FPS counter (on stdout) | `RCtrl`+`i`
_¹Double-click on black borders to remove them._

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: