termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
2.15k stars 314 forks source link

`Enter` key is not working #256

Closed Blocked closed 1 year ago

Blocked commented 1 year ago

After finding #34 , simulating KEYCODE_DPAD_CENTER is working, but KEYCODE_ENTER is not received in Termux X11 app version 1.02.06

ask9027 commented 1 year ago

After finding #34 , simulating KEYCODE_DPAD_CENTER is working, but KEYCODE_ENTER is not received in Termux X11 app version 1.02.06

Steps to Produce: move to any folder in thunar and Hit Enter Key. folder will not open.

https://user-images.githubusercontent.com/61283438/223017089-b50a5fb3-5104-48aa-a162-5c5626fb75a4.mp4

Even Ctrl & Alt key not working from Hacker Keyboard.(Termux-X11 Extra Keys working).

https://user-images.githubusercontent.com/61283438/223017170-b0c52958-5b25-4139-87f8-b9bb3052697f.mp4

other bug:- i installed android studio in termux with proot-distro, when i scroll code , search bar automatically open alonge scroll.

https://user-images.githubusercontent.com/61283438/223018640-594f2102-a754-4942-8600-01bf1dab861c.mp4

ask9027 commented 1 year ago

2023-03-06-13-24-49.txt Here is catlog from termux-x11. Hope this will helpful.

twaik commented 1 year ago

KEYCODE_ENTER is not received in Termux X11 app

Fixed in latest build.

Ctrl & Alt key not working from Hacker Keyboard.(Termux-X11 Extra Keys working).

It can not be fixed. Hacker's keyboard does not send any event when you press or release modifier keys so they can not be detected.

other bug:- i installed android studio in termux with proot-distro, when i scroll code , search bar automatically open alonge scroll.

That is happening because program tries to send horizontal scroll (Shift + Scroll). I did not found a way to send horizontal scroll. You can try to move both fingers up when you are performing vertical scroll. I am already looking for other options.

twaik commented 1 year ago

Here is catlog from termux-x11. Hope this will helpful.

It is not very helpful since it is taken from com.termux app, not from com.termux.x11. But you can do export TERMUX_X11_DEBUG=1 before invoking termux-x11 to get needed logs.

Blocked commented 1 year ago

@twaik Thanks. Can confirm it's fixed. @ask9027 Try Multiling O keyboard. It sends CTRL/ALT modifiers properly.

ask9027 commented 1 year ago

Here is catlog from termux-x11. Hope this will helpful.

It is not very helpful since it is taken from com.termux app, not from com.termux.x11. But you can do export TERMUX_X11_DEBUG=1 before invoking termux-x11 to get needed logs.

@twaik Some how i manage to get this 2023-03-06-13-40-36.txt

from termux-x11. if log automatically save in any .txt file. then we can get all log.

twaik commented 1 year ago

Sending keycode 42

Keycode 42 is KEY_LEFTSHIFT. It is definitely sent to emulate horizontal scroll. I can add option to disable it.

ask9027 commented 1 year ago

KEYCODE_ENTER is not received in Termux X11 app

Fixed in latest build.

Ctrl & Alt key not working from Hacker Keyboard.(Termux-X11 Extra Keys working).

It can not be fixed. Hacker's keyboard does not send any event when you press or release modifier keys so they can not be detected.

other bug:- i installed android studio in termux with proot-distro, when i scroll code , search bar automatically open alonge scroll.

That is happening because program tries to send horizontal scroll (Shift + Scroll). I did not found a way to send horizontal scroll. You can try to move both fingers up when you are performing vertical scroll. I am already looking for other options.

@twaik does this log helpfull for Ctrl from hHacker's keyboard? log.txt

twaik commented 1 year ago

No. As I said before it can not be fixed.