termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.36k stars 3.72k forks source link

[Bug]: Keyboard sometimes does not pop up #2551

Open freebrowser1 opened 2 years ago

freebrowser1 commented 2 years ago

Problem description

When using 'midnight commander' (mc) and there is no onscreen keyboard popped up, the keyboard cannot be popped up when clicking on the cursor bottom left.

Steps to reproduce the behavior.

Load Termux.

Load mc (can be installed by apt install mc).

Remove the onscreen keyboard, how to do that is dependant on which keyboard is used. I use 'Multiling-O' 1.02 as this one already contains 'terminal friendly keys' such as Ctrl, Esc, Tab, arrows, etc.' so it does not need the extra-keys setting which consumes precious screen space.

Then two panes will be shown with the current folder with a cursor bottom left. Click on the cursor bottom left.

What is the expected behavior?

Keyboard should pop up as in any other case in Termux when clicking on the cursor, but does not when mc is active. It does not pop up in both full screen mode and the mode with the Android notification bar on top.

System information

termux.properties contents

### After making changes and saving you need to run `termux-reload-settings`
### to update the terminal.  All information here can also be found on the
### wiki: https://wiki.termux.com/wiki/Terminal_Settings

###############
# Extra keys
###############

### Settings for choosing which set of symbols to use for illustrating keys.
### Choose between default, arrows-only, arrows-all, all and none
# extra-keys-style = default

### Default extra-key configuration
# extra-keys = [[ESC, TAB, CTRL, ALT, {key: '-', popup: '|'}, DOWN, UP]]
extra-keys = []

### Two rows with more keys
# extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'], \
#               ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]

### Configuration with additional popup keys (swipe up from an extra key)
# extra-keys = [[ \
#   {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \
#   {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \
#   {key: ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, \
#   {key: TAB, popup: {macro: "ALT a", display: A-a}}, \
#   {key: LEFT, popup: HOME}, \
#   {key: DOWN, popup: PGDN}, \
#   {key: UP, popup: PGUP}, \
#   {key: RIGHT, popup: END}, \
#   {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, \
#   {key: KEYBOARD, popup: {macro: "CTRL d", display: exit}} \
# ]]

# extra-keys-style = none

###############
# Colors/themes
###############

### Force black colors for drawer and dialogs
 use-black-ui = true

###############
# Keyboard shortcuts
###############

### Open a new terminal with ctrl + t (volume down + t)
# shortcut.create-session = ctrl + t

### Go one session down with (for example) ctrl + 2
# shortcut.next-session = ctrl + 2

### Go one session up with (for example) ctrl + 1
# shortcut.previous-session = ctrl + 1

### Rename a session with (for example) ctrl + n
# shortcut.rename-session = ctrl + n

###############
# Bell key
###############

### Vibrate device (default).
# bell-character = vibrate

### Beep with a sound.
# bell-character = beep

### Ignore bell character.
# bell-character = ignore

###############
# Back key
###############

### Send the Escape key.
# back-key=escape

### Hide keyboard or leave app (default).
# back-key=back

###############
# Keyboard issue workarounds
###############

### Letters might not appear until enter is pressed on Samsung devices
 enforce-char-based-input = true

### ctrl+space (for marking text in emacs) does not work on some devices
# ctrl-space-workaround = true

#hide-soft-keyboard-on-startup = true

# https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent
allow-external-apps = true
tareksander commented 2 years ago

I have the same problem with micro, I just configured an extra key to show/hide the keyboard.

petrmachcz commented 1 year ago

I have the same problem with micro, I just configured an extra key to show/hide the keyboard.

In what way, please?