Swap paste shortcuts
For consistency with MOD+c and MOD+x, use MOD+v to inject PASTE. Use Mod+Shift+v to inject clipboard content as a sequence of text events.
This commit is contained in:
@@ -267,11 +267,11 @@ scrcpy_print_usage(const char *arg0) {
|
||||
" Cut to clipboard (inject CUT keycode, Android >= 7 only)\n"
|
||||
"\n"
|
||||
" MOD+v\n"
|
||||
" Paste computer clipboard to device\n"
|
||||
" Copy computer clipboard to device, then paste (inject PASTE\n"
|
||||
" keycode, Android >= 7 only)\n"
|
||||
"\n"
|
||||
" MOD+Shift+v\n"
|
||||
" Copy computer clipboard to device (and paste if the device\n"
|
||||
" runs Android >= 7)\n"
|
||||
" Inject computer clipboard text as a sequence of key events\n"
|
||||
"\n"
|
||||
" MOD+i\n"
|
||||
" Enable/disable FPS counter (print frames/second in logs)\n"
|
||||
|
||||
@@ -405,11 +405,11 @@ input_manager_process_key(struct input_manager *im,
|
||||
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);
|
||||
} else {
|
||||
// store the text in the device clipboard and paste
|
||||
set_device_clipboard(controller, true);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user