Change "resize to fit" shortcut to Meta+w

Meta+x will be used for CUT (cut text to clipboard).
This commit is contained in:
Romain Vimont 2020-05-29 23:00:21 +02:00
parent 9badd2bdf0
commit 567c5a7da7
4 changed files with 4 additions and 4 deletions

View File

@ -568,7 +568,7 @@ _`Meta` is typically the `Windows` key on the keyboard, or `Cmd` on macOS._
| Rotate display left | `Meta`+`←` _(left)_
| Rotate display right | `Meta`+`→` _(right)_
| Resize window to 1:1 (pixel-perfect) | `Meta`+`g`
| Resize window to remove black borders | `Meta`+`x` \| _Double-click¹_
| Resize window to remove black borders | `Meta`+`w` \| _Double-click¹_
| Click on `HOME` | `Meta`+`h` \| _Middle-click_
| Click on `BACK` | `Meta`+`b` \| _Right-click²_
| Click on `APP_SWITCH` | `Meta`+`s`

View File

@ -220,7 +220,7 @@ Rotate display right
Resize window to 1:1 (pixel\-perfect)
.TP
.B Meta+x, Double\-click on black borders
.B Meta+w, Double\-click on black borders
Resize window to remove black borders
.TP

View File

@ -198,7 +198,7 @@ scrcpy_print_usage(const char *arg0) {
" " MOD "+g\n"
" Resize window to 1:1 (pixel-perfect)\n"
"\n"
" " MOD "+x\n"
" " MOD "+w\n"
" Double-click on black borders\n"
" Resize window to remove black borders\n"
"\n"

View File

@ -363,7 +363,7 @@ input_manager_process_key(struct input_manager *im,
screen_switch_fullscreen(im->screen);
}
return;
case SDLK_x:
case SDLK_w:
if (!shift && !repeat && down) {
screen_resize_to_fit(im->screen);
}