Not working virtual keyboard's BackSpace in filelist

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Not working virtual keyboard's BackSpace in filelist

Post by *DrShark »

2ghisler(Author)
This issue we also discussed by email last year.
The problem is that due to bugs of stock Google's virtual keyboard, it doesn't send a key code for BackSpace key (this one, not to be confused with another key with similar name, Android BACK key/button near HOME key/button.) on some Android versions (including Android 4.3.1 I use). Detailed description of a problem, with code sample with possible solution, available here. In Total commander for Android BackSpace key should call Go Up action in file list, but because of above Android bug, it doesn't work with virtual keyboard used for QuickSearch (commands 134, 154.) You wrote then that hotkeys for actions in filelist meant mainly for hardware keyboard, so the fix for such a minor issue with virtual keyboard may be too complex to implement (at least in TC4A 2.x) Please consider to try to fix it in TC4A 3.x.

(different problem existed with BackSpace key of BlackBerry's hardware keyboard - there this key also didn't work in TC's filelist because it sent KEYCODE_DEL code, so since v.2.91 TC4A reacts to KEYCODE_DEL, but only in ListView onKeyDOWN, not in onKeyUP, and that solved the problem.)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) »

Where is this issue? In the text editor not able to delete last type character?
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark »

ghisler(Author) wrote: 2019-03-21, 09:14 UTC Where is this issue? In the text editor not able to delete last type character?
Not editor (or other input fields), there BackSpace space works fine. I mean filelist, to which the BackSpace of the stock soft keyboard, called by QuickSearch (commands 134, 154,) doesn't send a key code (the test version you sent me last year that logs keypresses in filelist didn't log anything for BackSpace). So since Android somehow recognizes BackSpace keypress in input fields, maybe there is a way to catch BackSpace keypresses in TC's filelist ListView too... That's why in first post there's a link to sample code which may help in this case.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) »

But why? For going up one level? There is already the "go back" button for that on Android.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark »

ghisler(Author) wrote: 2019-03-21, 11:29 UTC But why? For going up one level? There is already the "go back" button for that on Android.
I'd like to have Go Up action for BackSpace button, and Go Back action - for Back Android button, please see my post in another topic for more details.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) »

The back button is used for "go up" in TC, not for the directory history.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark »

ghisler(Author) wrote: 2019-03-22, 10:32 UTC The back button is used for "go up" in TC, not for the directory history.
It was a topic with a suggestion (to have a choice for action of Android Back button: Go Up or Go Back)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply