diff --git a/README.md b/README.md index d844a67714..1342612f9b 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,12 @@ [![Join the Termux discord server](https://img.shields.io/discord/641256914684084234.svg?label=&logo=discord&logoColor=ffffff&color=5865F2)](https://discord.gg/HXpF69X) [![Termux library releases at Jitpack](https://jitpack.io/v/termux/termux-app.svg)](https://jitpack.io/#termux/termux-app) +# Termux Launcher [Termux](https://termux.com) is an Android terminal application and Linux environment. +This fork is being regularly updated and developed by chedim as keyboard-driven launcher with android application autocompletion. + +This fork was inspired by Thewisenerd's [termux-setup-apps patch](https://github.com/thewisenerd/termux-app/commit/b877a81b999179af2d702b8929b6d20e29dde054) Note that this repository is for the app itself (the user interface and the terminal emulation). For the packages installable inside the app, see [termux/termux-packages](https://github.com/termux/termux-packages). diff --git a/app/src/main/java/com/termux/app/TermuxViewClient.java b/app/src/main/java/com/termux/app/TermuxViewClient.java new file mode 100644 index 0000000000..e69de29bb2 diff --git a/terminal-view/src/main/java/com/termux/view/GestureAndScaleRecognizer.java b/terminal-view/src/main/java/com/termux/view/GestureAndScaleRecognizer.java index f7fc9d2370..dbb4f959b5 100644 --- a/terminal-view/src/main/java/com/termux/view/GestureAndScaleRecognizer.java +++ b/terminal-view/src/main/java/com/termux/view/GestureAndScaleRecognizer.java @@ -88,21 +88,23 @@ public boolean onScale(ScaleGestureDetector detector) { mScaleDetector.setQuickScaleEnabled(false); } - public void onTouchEvent(MotionEvent event) { + public boolean onTouchEvent(MotionEvent event) { mGestureDetector.onTouchEvent(event); mScaleDetector.onTouchEvent(event); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: isAfterLongPress = false; - break; + return true; case MotionEvent.ACTION_UP: if (!isAfterLongPress) { // This behaviour is desired when in e.g. vim with mouse events, where we do not // want to move the cursor when lifting finger after a long press. mListener.onUp(event); + return true; } break; } + return false; } public boolean isInProgress() {