Skip to content

Commit

Permalink
pro1: Use SYM as wakeup key for now
Browse files Browse the repository at this point in the history
Android wakes up with e.g. KEYCODE_BACK and KEYCODE_WAKEUP, but not with
WAKEUP_ESCAPE (see
frameworks/base/core/java/android/view/KeyEvent.java).

The stock layout at the time of writing uses KEYCODE_BACK for ESC and
therefore device wakeup works with ESC.

FinQwerty layouts use KEYCODE_ESCAPE for ESC and therefore wakeup does
not work.

To get a wakeup key on the physical keyboard, assign the SYM key as
KEYCODE_WAKEUP for now as it has no other purpose.

Reported and tested by John Warner.
  • Loading branch information
anssih committed Dec 28, 2019
1 parent 23bc94c commit 2505c7e
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_cze_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ type OVERLAY
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_dan_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ map key 13 FORWARD_DEL
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_fin_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ type OVERLAY
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_nor_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ map key 13 FORWARD_DEL
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_swe_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ map key 13 FORWARD_DEL
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_usa_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ type OVERLAY
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwerty_usaintl_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ type OVERLAY
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwertz_dan_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ map key 52 MINUS
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key 1 {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwertz_fin_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ map key 52 MINUS
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key 1 {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwertz_nor_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ map key 52 MINUS
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key 1 {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwertz_usa_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ map key 52 SLASH
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down
4 changes: 4 additions & 0 deletions finqwerty/src/main/res/raw/pro1_qwertz_usaintl_1.kcm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ map key 52 SLASH
# orig BACK
map key 158 ESCAPE

# orig SYM but SYM does not do anything at the moment
# so use as back/wakeup for now
map key 249 WAKEUP

# ROW 1

key ESCAPE {
Expand Down

0 comments on commit 2505c7e

Please sign in to comment.