Not working virtual keyboard's BackSpace in filelist

Support for Android version of Total Commander

Moderators: Stefan2, white, sheep, Hacker

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

Not working virtual keyboard's BackSpace in filelist

Post by *DrShark » 2019-03-20, 14:02 UTC

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.)
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37363
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) » 2019-03-21, 09:14 UTC

Where is this issue? In the text editor not able to delete last type character?
Author of Total Commander
http://www.ghisler.com

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

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark » 2019-03-21, 10:23 UTC

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.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37363
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) » 2019-03-21, 11:29 UTC

But why? For going up one level? There is already the "go back" button for that on Android.
Author of Total Commander
http://www.ghisler.com

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

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark » 2019-03-21, 11:53 UTC

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.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37363
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not working virtual keyboard's BackSpace in filelist

Post by *ghisler(Author) » 2019-03-22, 10:32 UTC

The back button is used for "go up" in TC, not for the directory history.
Author of Total Commander
http://www.ghisler.com

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

Re: Not working virtual keyboard's BackSpace in filelist

Post by *DrShark » 2019-03-22, 11:43 UTC

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)
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

Post Reply