Skip to content

Commit f4d8170

Browse files
committed
Change debug mode toggle to long press enter
1 parent bd852d1 commit f4d8170

13 files changed

Lines changed: 18 additions & 9 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
- Reshuffled and changed existing symbols keys
77
- Added second symbols keyboard for ideographic description characters
8+
- Changed debug mode toggle to long press enter key
89

910

1011
## [v0.7.2] Clipped previews fix (2021-08-08)

app/src/main/assets/help-zh-Hant-HK.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
## 雜項 ##
3636

3737
{: \space-bar: <kbd class="space-bar">◀ 中文 ▶</kbd> :}
38-
{: \about-key: <kbd>🛈</kbd> :}
38+
{: \enter-key: <kbd></kbd> :}
3939

4040
''''
4141
==
@@ -45,7 +45,7 @@
4545
, 長撳 \space-bar
4646
, 轉其他鍵盤
4747
==
48-
, 長撳 \about-key
48+
, 長撳 \enter-key
4949
, 測試專用
5050
''''
5151

app/src/main/assets/help-zh-Hant-HK.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2>雜項</h2>
4242
<td>轉其他鍵盤</td>
4343
</tr>
4444
<tr>
45-
<td>長撳 <kbd>🛈</kbd></td>
45+
<td>長撳 <kbd></kbd></td>
4646
<td>測試專用</td>
4747
</tr>
4848
</table>

app/src/main/assets/help-zh-Hant-TW.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
## 雜項 ##
3636

3737
{: \space-bar: <kbd class="space-bar">◀ 中文 ▶</kbd> :}
38-
{: \about-key: <kbd>🛈</kbd> :}
38+
{: \enter-key: <kbd></kbd> :}
3939

4040
''''
4141
==
@@ -45,7 +45,7 @@
4545
, 長按 \space-bar
4646
, 轉其他鍵盤
4747
==
48-
, 長按 \about-key
48+
, 長按 \enter-key
4949
, 測試專用
5050
''''
5151

app/src/main/assets/help-zh-Hant-TW.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2>雜項</h2>
4242
<td>轉其他鍵盤</td>
4343
</tr>
4444
<tr>
45-
<td>長按 <kbd>🛈</kbd></td>
45+
<td>長按 <kbd></kbd></td>
4646
<td>測試專用</td>
4747
</tr>
4848
</table>

app/src/main/assets/help.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
## Miscellaneous ##
3434

3535
{: \space-bar: <kbd class="space-bar">◀ English ▶</kbd> :}
36-
{: \about-key: <kbd>🛈</kbd> :}
36+
{: \enter-key: <kbd></kbd> :}
3737

3838
''''
3939
==
@@ -43,7 +43,7 @@
4343
, Long press \space-bar
4444
, Change to other keyboard
4545
==
46-
, Long press \about-key
46+
, Long press \enter-key
4747
, Testing use only
4848
''''
4949

app/src/main/assets/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2>Miscellaneous</h2>
4242
<td>Change to other keyboard</td>
4343
</tr>
4444
<tr>
45-
<td>Long press <kbd>🛈</kbd></td>
45+
<td>Long press <kbd></kbd></td>
4646
<td>Testing use only</td>
4747
</tr>
4848
</table>

app/src/main/java/io/github/yawnoc/strokeinput/StrokeInputService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ public void onLongPress(final String valueText) {
164164
if (valueText.equals("SPACE")) {
165165
Contexty.showSystemKeyboardSwitcher(this);
166166
}
167+
else if (valueText.equals("ENTER")) {
168+
inputContainer.toggleDebugMode();
169+
}
167170
}
168171

169172
@Override

app/src/main/res/xml/keyboard_qwerty.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
<Key
127127
app:keyValueText="ENTER"
128128
app:keyDisplayText=""
129+
app:keyIsLongPressable="true"
129130
app:keyTextSize="@dimen/font_size__enter_key"
130131
app:keyFillColour="@color/enter_key_fill"
131132
app:keyIsPreviewable="false"

app/src/main/res/xml/keyboard_qwerty_symbols.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<Key
107107
app:keyValueText="ENTER"
108108
app:keyDisplayText=""
109+
app:keyIsLongPressable="true"
109110
app:keyTextSize="@dimen/font_size__enter_key"
110111
app:keyFillColour="@color/enter_key_fill"
111112
app:keyIsPreviewable="false"

0 commit comments

Comments
 (0)