Skip to content

Commit 532843d

Browse files
committed
Always prefer text events by default
This improves text input, but it breaks the expected behavior in games again: <#87>. To get the previous behavior back, pass an explicit option: scrcpy --prefer-text-events=non-alpha
1 parent 44791d6 commit 532843d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/scrcpy.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Possible \fImode\fRs are "always" (every text is sent as text), "non-alpha"
6969
(only letters are sent as a sequence of key events, other characters are sent
7070
as text) and "never" (every text is sent as a sequence of key events).
7171

72-
Default is "non-alpha".
72+
Default is "always".
7373

7474
.TP
7575
.BI "\-\-push\-target " path

app/src/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ static void usage(const char *arg0) {
7373
" device.\n"
7474
" Possible values are:\n"
7575
" always:\n"
76-
" Every text is sent as text.\n"
76+
" Every text is sent as text. (default)\n"
7777
" non-alpha:\n"
7878
" Only letters are sent as a sequence of key events, other\n"
79-
" characters are sent as text. (default)\n"
79+
" characters are sent as text.\n"
8080
" never:\n"
8181
" Every text is sent as a sequence of key events.\n"
8282
"\n"

app/src/scrcpy.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct scrcpy_options {
3535
.window_title = NULL, \
3636
.push_target = NULL, \
3737
.record_format = RECORDER_FORMAT_AUTO, \
38-
.text_events_pref = PREFER_TEXT_EVENTS_NON_ALPHA, \
38+
.text_events_pref = PREFER_TEXT_EVENTS_ALWAYS, \
3939
.port = DEFAULT_LOCAL_PORT, \
4040
.max_size = DEFAULT_LOCAL_PORT, \
4141
.bit_rate = DEFAULT_BIT_RATE, \

0 commit comments

Comments
 (0)