Skip to content

Commit

Permalink
Fixes android keyboard not showing up on tap
Browse files Browse the repository at this point in the history
  • Loading branch information
chedim committed Nov 22, 2023
1 parent 87006aa commit 3621452
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3621452

Please sign in to comment.