Page 1 of 1

Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-20, 14:02 UTC
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.)

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-21, 09:14 UTC
by ghisler(Author)
Where is this issue? In the text editor not able to delete last type character?

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-21, 10:23 UTC
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.

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-21, 11:29 UTC
by ghisler(Author)
But why? For going up one level? There is already the "go back" button for that on Android.

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-21, 11:53 UTC
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.

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-22, 10:32 UTC
by ghisler(Author)
The back button is used for "go up" in TC, not for the directory history.

Re: Not working virtual keyboard's BackSpace in filelist

Posted: 2019-03-22, 11:43 UTC
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)