mirror of
https://github.com/fankes/termux-app.git
synced 2025-10-22 03:39:21 +08:00
Extrakeys: make ― the same as - in some more places
This commit is contained in:
committed by
Fredrik Fornwall
parent
7187ed6950
commit
244248b1a0
@@ -255,7 +255,7 @@ public final class ExtraKeysView extends GridLayout {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
if ("―/".contains(buttonText)) {
|
if ("―/-".contains(buttonText)) {
|
||||||
if (popupWindow == null && event.getY() < 0) {
|
if (popupWindow == null && event.getY() < 0) {
|
||||||
v.setBackgroundColor(BUTTON_COLOR);
|
v.setBackgroundColor(BUTTON_COLOR);
|
||||||
String text = "―".equals(buttonText) ? "|" : "\\";
|
String text = "―".equals(buttonText) ? "|" : "\\";
|
||||||
@@ -276,7 +276,7 @@ public final class ExtraKeysView extends GridLayout {
|
|||||||
scheduledExecutor = null;
|
scheduledExecutor = null;
|
||||||
}
|
}
|
||||||
if (longPressCount == 0) {
|
if (longPressCount == 0) {
|
||||||
if (popupWindow != null && "―/".contains(buttonText)) {
|
if (popupWindow != null && "―/-".contains(buttonText)) {
|
||||||
popupWindow.setContentView(null);
|
popupWindow.setContentView(null);
|
||||||
popupWindow.dismiss();
|
popupWindow.dismiss();
|
||||||
popupWindow = null;
|
popupWindow = null;
|
||||||
|
Reference in New Issue
Block a user