Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center OK Button Issues #393

Closed
theancientways opened this issue Nov 14, 2023 · 55 comments · Fixed by #505
Closed

Center OK Button Issues #393

theancientways opened this issue Nov 14, 2023 · 55 comments · Fixed by #505
Labels
bug Something isn't working device hack A device bug that requires a hack on our side

Comments

@theancientways
Copy link

Hey, I'm encountering an issue on the Sonim XP3plus where the center ok button doesn't work sometimes in the contacts app. The only time it consistently doesn't work is when I try to use the "add a contact" function from the text message app. It takes me to a window with a search field above a list of contacts, the top option of which being "create a contact". This is the window where the center button consistently doesn't work. It does work if I switch to the phone's native text input method. I know you didn't test this on every phone so there's bound to be bugs here an there on different devices but still thought I'd report it.

@theancientways
Copy link
Author

Some more info... Oddly, after toggling off the "send messages with OK in messenger", the center button seems to function in the contacts app only once, after that it doesn't work. Weird.

@sspanak
Copy link
Owner

sspanak commented Dec 18, 2023

I don't quite get what's wrong, because you just say "it doesn't work", but I sounds really similar to this bug. If it is the same, it will be fixed in the next version. Or is it different?

@sspanak sspanak added the more info needed Further information is requested label Dec 18, 2023
@theancientways
Copy link
Author

theancientways commented Dec 31, 2023

Hey, I don't know if I have the know-how to be able to explain it beyond how I did in my first post nor to understand the jargon in the post you linked, I'm a noob with this stuff unfortunately. Basically in a nutshell the center OK button on my flip phone doesn't work when a new number texts me and I try to add them as a new contact. From the text message thread I press a soft key and select "add new contact" from the popup list. That takes me to the contacts app with a button that says "add new contact", trying to press this with the OK button does nothing. Sorry I can't explain better but I could get screenshots if that might help. It's not the worst of inconveniences but it's just odd that it doesn't work right.

If I download your new release, will it carry over my user dictionary or will I have to start it from scratch?

Thanks as always.

@theancientways
Copy link
Author

hey just a bump for my question at the end of my above post, is there a way to save your user dictionary when you upgrade or do you have to start from scratch?

@sspanak
Copy link
Owner

sspanak commented Feb 5, 2024

This is quite problematic at the moment. The upcoming version 27.0 will introduce major database changes, which will make it possible to protect the added words. It would even be possible to delete all languages, then reload them, but the words will remain safe. In the future, it would be possible to export them, as well.

However, the above comes at the cost of deleting absolutely all words when upgrading to v27.0.

But still, you may actually win more than you lose after the upgrade, depending on the language(s) you are using. Bulgarian, English, Romanian, Russian and Ukrainian will receive a major update including thousands of new words.

I realize many other languages lack rich dictionaries, but hopefully, with community contributions, it will get better over time.

@theancientways
Copy link
Author

I'm willing to start from scratch to get access to those new features. Sounds like v27 will be a huge leap. Looking forward to it and thanks for all your work! Will donate.

@sspanak
Copy link
Owner

sspanak commented Feb 10, 2024

As I mentioned in the other issue, the new version is out. Please check it out and let me know if it fixes the problem.

@drol845
Copy link

drol845 commented Mar 7, 2024

I am using tt9 on a Sonim XP3800. The center button isn't working correctly in some apps. For example, in the calculator, the center button represents "equals", but it doesn't return the calculation result. In the music player, long-pressing the center button over a song doesn't open the menu. This issue occurs in some other apps as well.

Overall, I'm very excited with tt9, I'm only switching back to the original keyboard when I need a calculator, etc.

It would be great if there would be an easier way to switch keyboards back and forth.

@sspanak
Copy link
Owner

sspanak commented Mar 9, 2024

It would be great if there would be an easier way to switch keyboards back and forth.

There is an easy way to switch from TT9 to another keyboard. See the manual. However, I am not sure if the Sonim native keyboard allows the same as easily.

I am using tt9 on a Sonim XP3800. The center button isn't working correctly in some apps. For example, in the calculator, the center button represents "equals", but it doesn't return the calculation result. In the music player, long-pressing the center button over a song doesn't open the menu. This issue occurs in some other apps as well.

I remember another problem with the calculator in this PR, but there seem to be many more problems on Sonim phones, than I thought. I've created a special file for application and device hacks compatibility options, so I can easily add more, but it's incredibly difficult to diagnose and fix them remotely.

Have you tried any other 3rd party keyboard, for example k9t9? If not and you are willing to help with debugging, please check it out. If the player and the calculator work properly, then there is something wrong with Traditional T9. I can then try to figure out how k9t9 handles OK and do the same. If it doesn't work either, it means the Sonim apps and keyboard are meant to work together and send some special signals to each other for improved usability. In this case, I'll have to guess what is going on and apply some hack.

As you probably understand, I can't promise much. I think I have an idea about a couple of experimental fixes, that I intend to release in the upcoming v29.0, so, again, if you are willing to help, follow this issue. I'll make an announcement and let you know how to enable them. Then you'll just have to tell me which one works, if it works.

@theancientways
Copy link
Author

I am using tt9 on a Sonim XP3800. The center button isn't working correctly in some apps. For example, in the calculator, the center button represents "equals", but it doesn't return the calculation result. In the music player, long-pressing the center button over a song doesn't open the menu. This issue occurs in some other apps as well.

Overall, I'm very excited with tt9, I'm only switching back to the original keyboard when I need a calculator, etc.

It would be great if there would be an easier way to switch keyboards back and forth.

I'm experiencing the same issues on the Sonim XP3plus. It's weird in the calculator, when you press enter, the "equals" function is executed when you press the "ok" button, it just displays a blank space. You can tell the equals function is executed because it shifts the equation up as it should when you press the ok button. As I stated in my original post, when in TT9 I can't add a phone number as a new contact from the text message app, it takes me to the "add a contact" screen, but I can't execute the function as pressing the "ok" button does nothing. To me it's not a huge deal, I just go into the TT9 app settings and switch to the native keypad then go back and execute the function I needed. This is a compromise I can live with.

@asherGe
Copy link

asherGe commented Mar 10, 2024

Have you tried any other 3rd party keyboard, for example k9t9?

@sspanak, I am experiencing the same issues that @drol845 and @theancientways are describing on the XP3plus (XP3900) with the calculator app and the contacts app (tt9 v28.0). I took your suggestion and installed k9t9. While k9t9 appears to have other issues with this phone (e.g. backspace/delete not working), it DOES allow the OK button to work properly both for the calculator and contacts app. So, it appears there IS potential that you can solve this issue?!

There is an easy way to switch from TT9 to another keyboard. See the manual. However, I am not sure if the Sonim native keyboard allows the same as easily.

The native keyboard does not give option for hotkey to access keyboard selection. Looks like most efficient way to swtich back is to launch tt9 from app menu -> Initial Setup - Select Default Keyboard and re-select tt9 as default.

@asherGe
Copy link

asherGe commented Mar 10, 2024

I don't quite get what's wrong, because you just say "it doesn't work", but I sounds really similar to #364. If it is the same, it will be fixed in the next version. Or is it different?

Here's my take at describing the Contacts problem: Say someone who I don't have in my contacts calls me and I want to add them to contacts. I can go to Phone -> Recent Calls -> select phone number of recent call. Then there is a soft-key option "Add to Contacts". This takes me to a screen with the alphabetical list of my contacts. At the top of the screen is a search field and I can type in that field to filter the contacts listed below and the OK button works correctly inside the search field. However, in this scenario, when the search field is empty, the first option below it is "Create new contact", followed by the alphabetical list of contacts. The text cursor is in the search field and the highlighted down-selection is "Create new contact" but the OK button does not work - does nothing - and it is not possible to execute the "create new contact" function. Furthermore, if I want to add the number to an existing contact, I would use the search field to filter the selection list and when I navigate using up/down keys to select desired contact, the OK button does not execute the function to add the number to that contact - the okay press does nothing. Appears that the issue has something to do with the active search field where the OK button is trying to perform while one is trying to use it to select a down-list selection beneath the search field.
ContactsBugScreenShot
contactsBugUnkown

@sspanak sspanak added bug Something isn't working and removed more info needed Further information is requested labels Mar 10, 2024
@sspanak
Copy link
Owner

sspanak commented Mar 10, 2024

While k9t9 appears to have other issues with this phone (e.g. backspace/delete not working), it DOES allow the OK button to work properly both for the calculator and contacts app. So, it appears there IS potential that you can solve this issue?!

Yes, I think I know what is wrong. I just have to be careful not to cause the same on TCL Flip 2 (#182), or any of: #210, #309 (similar problem on another Sonim), or: #77, #51 (OK must submit forms properly, navigate to web pages in browsers and whatnot).

Notes to self: when any of DPAD_CENTER, ENTER or NUMPAD_ENTER is pressed, and the suggestions are hidden, and no app hack is applied, then return false.

Note to everyone: I can't provide a fix immediately, because the code is very unstable now. I'll have to complete v29.0 first. I've been thinking that v30.0 could be dedicated to fixing such device-specific problems anyway.

@theancientways
Copy link
Author

theancientways commented Mar 28, 2024

I am using tt9 on a Sonim XP3800. The center button isn't working correctly in some apps. For example, in the calculator, the center button represents "equals", but it doesn't return the calculation result. In the music player, long-pressing the center button over a song doesn't open the menu. This issue occurs in some other apps as well.

Overall, I'm very excited with tt9, I'm only switching back to the original keyboard when I need a calculator, etc.

It would be great if there would be an easier way to switch keyboards back and forth.

@drol845 Hey I just found out if you go to the advanced panel the calculator displays the answer, then if you switch back to the basic panel, the answer gets displayed but not consistently. It's only consistently displayed in the advanced panel, so that's a way to still be able to use the calculator in on the XP3plus with TT9 enabled.

@sspanak
Copy link
Owner

sspanak commented Mar 30, 2024

@drol845 , @theancientways , @asherGe , please try out v29.15. I have attempted to fix the problem there. Any feedback will be much appreciated.

@asherGe
Copy link

asherGe commented Mar 30, 2024 via email

@sspanak
Copy link
Owner

sspanak commented Mar 30, 2024

No, not at this time. I thought I had it figured out, but I am still missing something. I'll give it a try later.

@asherGe
Copy link

asherGe commented Mar 30, 2024 via email

@sspanak
Copy link
Owner

sspanak commented Apr 1, 2024

One other piece of info... the v29.15 mod also broke the display of entry
mode and suggestions at bottom of screen upon first push of okay button in
messaging text field. Instead of displaying the entry mode and suggestions,
it returned an extra line in the text field.

I've noticed this as well, but it happens only in Duolingo for me. I can test there and fix it.

But what happens if you just start typing? Won't the UI appear? In v29.0 I've tried to reduce the number of applications where pressing OK is mandatory. In most of them, it should be possible to make TT9 appear with any key from 0 to 9.

@asherGe
Copy link

asherGe commented Apr 1, 2024 via email

@asherGe
Copy link

asherGe commented Apr 1, 2024 via email

@drol845
Copy link

drol845 commented Apr 1, 2024

@asherGe The older model XP3 dosn't have these soft keys.

@sspanak
Copy link
Owner

sspanak commented Apr 1, 2024

Here is an example (see attached screen shot)

Something has gone wrong with the attachments, I see none of them. Could you please try posting them again?

Anyway, I understand that you are trying to make the
adjustments to the code to work universally across all phones and all apps,
so perhaps this is just extraneous info.

Perhaps, perhaps not. It may help me understand better how the Sonim phone works.

Wondering if it may be possible
and helpful to assign an alternate key (such as the center soft key) the OK
operation when the normal OK press does not operate as intended?

I am thinking of this. But first, I would like to review and try to fix the OK key one more time. I was able to reproduce the incorrect behavior in Duolingo and the Qin messaging app. I may have made some incorrect assumptions about printing a new line vs performing some action.

@asherGe
Copy link

asherGe commented Apr 1, 2024

Apologies, I was replying directly from e-mail which appears not as good as commenting from github. Here's the attachment
Clock_Alarm_ScreenShot

@asherGe
Copy link

asherGe commented Apr 18, 2024

Hi sspanak, again, thanks for your efforts here! Unfortunately this attempt (v30.10) did not work. Still can't get UI to appear. I can see the difference in behavior with OK between the three visible modes and the invisible mode, but UI won't appear. In the three visible modes, when I press OK while word is underlined, nothing happens and the word remains underlined. The 0 (space) key selects the word. In the invisible mode, the OK does the same operation as the space (0) key.

@sspanak
Copy link
Owner

sspanak commented Apr 19, 2024

Unfortunately this attempt (v30.10) did not work. Still can't get UI to appear.

Alright, so far we have tried two ways of showing the main UI, two more remain. Here is an APK with the third possible way: v30.14. You can use the same technique: start typing, then press OK and this time it should appear. The fourth option seems really unlikely, so it must be this one.

I've tried enabling the show function when there is no text and one simply presses OK, but this causes unnecessary flash of the UI in applications with search fields, so I gave up the idea. I think pressing OK after starting to type is good enough.

thanks for your efforts here!

I must thank you for the patience and for being my right hand in solving this last problem. 🙂

@sspanak sspanak added the device hack A device bug that requires a hack on our side label Apr 19, 2024
@asherGe
Copy link

asherGe commented Apr 19, 2024

Okay, getting close! So the UI DOES appear now and stays active on the first press of OK while having typed at least one letter in the text field, but it also sends whatever has been typed as a completed message (which I think is unintended and a bit annoying?)...after that, once the UI has been activated, OK works as intended to select/approve underlined word and only sends the message when nothing is selected (i.e. on a second consecutive press of OK).

@sspanak
Copy link
Owner

sspanak commented Apr 19, 2024

Alright, here is what I can do. I cannot prevent sending if there is text. However, I can make OK display the UI if there is no text (like before), but in that case, it will not send blank text. I wanted to keep that functionality for some apps that display all results when you search for nothing, but I guess this is not so important, neither really intuitive.

Sorry for the inconvenience. I hope you don't send too many wrong messages today. Try typing the message first and adding the receiver after that to prevent it.

@sspanak
Copy link
Owner

sspanak commented Apr 20, 2024

As promised, here is a new APK: v30.15. It allows showing the UI by pressing OK when there is no text and also some more small tweaks. Showing after starting to type is no longer possible to avoid accidental sending. Overall, it should be much more intuitive, I've tested both on Sonim XP3800 and on Qin F21 Pro+ and it is fine, "it just works". I really hope it is OK on the XP3900 too.

@asherGe
Copy link

asherGe commented Apr 20, 2024

Yup! Excellent. It works on the XP3900 too!

@asherGe
Copy link

asherGe commented Apr 21, 2024

v30.15 working pretty much flawlessly now on XP3900 in the native messaging app. There is one observation on the ADD Word (*-key) feature recently mentioned in the #495 thread. It now works when UI is activated but *-key-press is unresponsive when the UI is invisible (in one of the three visible modes prior to activation with OK press and in invisible mode).

So, one more OK button issue cropped up in the Contacts app with this latest version v30.15. Curious if it replicates on the XP3800. If you search for a contact by typing in the search field, the downlist of filtered selections appears but the OK button no longer works to select the contact. If you leave the search field empty, you can scroll through all the unfiltered complete list of contacts and OK still works. I have well over 500 contacts on my phone so the ability to use the filter is essential to quickly finding a contact phone number.

Currently, the contacts app allows the UI to appear in certain circumstances but not in others. Pressing OK in the empty search field doesn't activate the UI, instead it selects the first contact in the down list. If I choose to ADD a new contact and go to the first Name field and press OK, the UI activates. The incompatibility issues appear to be occurring where there is an ambiguity between OK selecting from a downlist or making a tt9 OK entry in the search text field (empty or filtered).

@wazroth
Copy link

wazroth commented Apr 21, 2024

Works as described for me (XP3900) in the messenger compose window and notes app. The interface shows by default in the URL field of the browser.

Small 3900 issues, not sure whether addressable:

  • In the compose interface for the messenger app, in the "To" field, pressing OK pulls up the UI and moves focus to the "Message" field.
  • In the Contacts app: context: the cursor is always present in the "Find contacts" field but a contact is also always highlighted in results window; navigating with up/down changes the selection in the results. The bug is that OK always selects the currently highlighted contact, and it's impossible to pull up the UI.
  • In the Phone app, pressing OK in the empty Search field moves focus from the Search field to the recent calls browser, and does not bring up the interface.

@neutralinsomniac
Copy link

neutralinsomniac commented Apr 21, 2024

Just to add on to the fun, using v30.15, the OK button doesn't work in Signal's message input box at all. To select the current active completion and send my message, I have to type 0 (space) and then back (delete). Then I can navigate to the send button with the cursor keys to send the message. I'm not sure if Signal is one of those apps that eats the OK button for its own purposes (it seems to do nothing ever) or if this is something that tt9 should be able to handle.

@neutralinsomniac
Copy link

v30.15 working pretty much flawlessly now on XP3900 in the native messaging app. There is one observation on the ADD Word (*-key) feature recently mentioned in the #495 thread. It now works when UI is activated but *-key-press is unresponsive when the UI is invisible (in one of the three visible modes prior to activation with OK press and in invisible mode).

So, one more OK button issue cropped up in the Contacts app with this latest version v30.15. Curious if it replicates on the XP3800. If you search for a contact by typing in the search field, the downlist of filtered selections appears but the OK button no longer works to select the contact. If you leave the search field empty, you can scroll through all the unfiltered complete list of contacts and OK still works. I have well over 500 contacts on my phone so the ability to use the filter is essential to quickly finding a contact phone number.

Currently, the contacts app allows the UI to appear in certain circumstances but not in others. Pressing OK in the empty search field doesn't activate the UI, instead it selects the first contact in the down list. If I choose to ADD a new contact and go to the first Name field and press OK, the UI activates. The incompatibility issues appear to be occurring where there is an ambiguity between OK selecting from a downlist or making a tt9 OK entry in the search text field (empty or filtered).

I have the same OK button not working in the contacts list after filtering issue on the XP3900.

@neutralinsomniac
Copy link

For both of the above issues (OK button not working in Signal, OK button not working in Contacts), both apps work great in v30.0. Obviously the on-screen completions don't happen on that version, but otherwise everything seems great.

@sspanak
Copy link
Owner

sspanak commented Apr 22, 2024

OK, here is an APK (v30.16), where you can select between the possible ways of displaying the UI. Anyone willing to keep testing, go to Settings, scroll down to the version info and click it to open the debugging settings. In there, look for "Show Window Mode". Try out the different modes and let me know of the results.

Some considerations:

  1. The modes that do DPAD_CENTER emulation may send messages or perform some other action. Test them in a safe application or disable the SIM card.
  2. The "auto-select" mode ought to work on all phones and it is the one I want to keep. Please try that one first.

There is one observation on the ADD Word (*-key) feature recently mentioned in the #495 thread. It now works when UI is activated but *-key-press is unresponsive when the UI is invisible (in one of the three visible modes prior to activation with OK press and in invisible mode).

This is by design. Some keys are deliberately disabled when TT9 is hidden.

So, one more OK button issue cropped up in the Contacts app with this latest version v30.15. Curious if it replicates on the XP3800

Searching and selecting works fine. However, if I click a contact, then go back to the list, I can only type numbers. To be able to search normally again, I have to close the app and reopen it. This is not critical and is not a problem with the OK key, but with the entire application, so I'll check it out later.

@wazroth, @neutralinsomniac, I hope at least one of the Show Window modes will work properly and solve all the small problems. The Contacts app is an exception, but it should work fine most of the time, as I explained.

@neutralinsomniac
Copy link

neutralinsomniac commented Apr 22, 2024

Alright here's the results for v30.16 on the XP3900:

Messaging app:

Window Mode Suggestions window shows on OK Completions can be selected with OK Message can send on OK
Auto select
Android 8 way
Android 9 way
DPAD_CENTER emulation
Android 8 way + DPAD_CENTER emulation

Signal:

Window Mode Suggestions window shows on OK Completions can be selected with OK Message can send on OK
Auto select ❌ (1)
Android 8 way
Android 9 way
DPAD_CENTER emulation ❌ (2)
Android 8 way + DPAD_CENTER emulation ❌ (1)

1: On initial OK, nothing happens, but on second and subsequent OK's, Signal says "Message is empty!" which suggests that tt9 tried to display itself on the first OK but just couldn't for some reason. As a note, the stock 12-key keyboard is able to display suggestions while typing in Signal.
2: On initial OK and subsequent OKs, nothing happens.

I am curious now that I'm thinking about this, the stock 12-key keyboard displays its own suggestions window whenever you start typing (not needing to "wake up" the keyboard with a specific key like OK). Is that keyboard doing something different from what tt9 is attempting?

@asherGe
Copy link

asherGe commented Apr 22, 2024

neutralinsomniac - great matrix! Too bad still compatibility issues with Signal (I don't use it myself).

DPAD_CENTER emulation so far appears to solve all the issues that I have experienced in Messaging App, Contacts App, and Calculator App (with XP3900). Everything works as expected and I can even get the UI to display when pressing OK from text entry field (other than search field) in the Contacts App and the Calendar App. This mode offers the best experience so far with the XP3900.

sspanak - you've mentioned for future releases the possibility of adding another option in the Compatibility options in Initial Setup. Adding this DPAD_CENTER emulation option there would allow tt9 to be maximally compatible with the XP3900 and still allow you to maintain "auto select" as the default.

@sspanak
Copy link
Owner

sspanak commented Apr 23, 2024

Thank you very much for the cooperation!

Based on your feedback and more digging in the Android documentation, I've come up with two more ways of displaying the UI. Please, try v30.17. You can find two more "Show Window" options:

  • "Use CandidateView". I think this is what the native keyboard does. It feels a bit sluggish and it occasionally produces a 1px white bar under the suggestions list, but it works fine on the XP3800, including also solving all problems with the Contacts app. Also, it works reliably on the Qin F21 Pro.
  • "Android 9 (no flags)". According to the documentation this is the way to put as much pressure on Android to display the active keyboard. However, it does not work for me. You may want to try it out, just in case.

Note that, when switching to and from "CandidateView" mode, you may need to go to the home screen then reopen the Messages or Notes application, otherwise it may not switch correctly.

sspanak - you've mentioned for future releases the possibility of adding another option in the Compatibility options in Initial Setup. Adding this DPAD_CENTER emulation option there would allow tt9 to be maximally compatible with the XP3900 and still allow you to maintain "auto select" as the default.

I don't like the idea of emulating a key press. As noted above, depending on the application, it may have a side effect, like switching focus to something else or even attempting to send a message. I'll include it only if there is no other choice.

I am curious now that I'm thinking about this, the stock 12-key keyboard displays its own suggestions window whenever you start typing (not needing to "wake up" the keyboard with a specific key like OK). Is that keyboard doing something different from what tt9 is attempting?

Here are some technical details for your curiosity then.

If you can type, TT9 is awake, there is no real waking up. "Waking up" is just a more human-friendly expression for "displaying the main user interface".

The problem is I am not doing much but calling a function named "showWindow()" or "requestShowSelf()", depending on the Android version. Each of these is supposed to draw the keyboard on the screen and they work perfectly fine on all the devices I have, but apparently Sonim have modified the Android code in their newer phones and now none of the functions work. They may have introduced a third one, I don't know.

I've noticed some applications respond to the DPAD Center key and send requests to Android to show the keyboard. And the native applications know exactly what to do, so this works in Messages and Contacts, but it does not in Signal.

@neutralinsomniac
Copy link

On v30.17, neither "Use CandidateView" nor "Android 9 (no flags)" show suggestions. I even tried rebooting after the switch to "Use CandidateView".

@sspanak
Copy link
Owner

sspanak commented Apr 24, 2024

Here is my last take on this problem, v30.18. In 30.17, there was a mistake when checking the visibility, that may have prevented the different methods to work in some cases.

The last thing that came to my mind, based on the messages from Signal is, TT9 may actually be showing up, but remaining off the screen or hidden behind the soft buttons. To test this, I have added one more debugging option: "Inset Size". Please, switch to "CandidateView" mode, reboot, then try the different sizes.

If it still doesn't work, check the methods in the following order: "Android 8", "Android 9", "Android 8 + DPAD_CENTER" and finally "DPAD_CENTER". Do reboot again after switching out of "CandidateView" for a clean start. Rebooting between all other modes is not necessary. Sorry about asking you to test the same again, but that mistake I mentioned was affecting all modes.

And that's all I can do. I can't think of any other ways of making the UI appear. In the worst case scenario, I'll just add an emulated DPAD_CENTER click at the beginning of OK key routine, if the phone is Sonim XP3900. This will work only for the built-in apps, but it is what it is. At least there will be no need for an extra setting.

For finalizing the potential fix, I will also need the make and the model as reported by the device. Could someone please check them? They can be found at the top of the Debugging screen. I need the two strings, including the quotes around them.

@neutralinsomniac
Copy link

Alright so, Android 9 way (no flags), inset size 0, completions come up immediately when I start typing (no need to hit OK first) in both Signal and the stock messaging app, except I then can't select completions with OK. UseCandidatesView still doesn't show completions in any app. The strings to match this phone are "Sonimtech" "XP3900".

@asherGe
Copy link

asherGe commented Apr 25, 2024

Agree, Can't get UI to appear in CandidateView with any of the Inset sizes. Android 9 way does make the UI appear without pressing OK with first key press in Messaging and Contacts app, but OK doesn't work for selecting underlined text or selecting downlist items in Contacts.

I wonder if Antdroid 9 + DPAD_CENTER is yet another option that may do the trick?

The only mode that works acceptably well is DPAD_CENTER emulation.

@sspanak
Copy link
Owner

sspanak commented Apr 25, 2024

At last, some good news!

Selecting the suggestions wasn't working, because the code for the OK key became a mess. But it doesn't matter, I've cleaned it up and included it in the next release train.

Here is v30.30. It should work out-of-the-box. If it doesn't, just make sure the "Always on Top" option in Settings -> Appearance (at the bottom) is on. This is in case the XP3900 wasn't detected properly.

As a bonus, you get an early preview of the new stuff that is coming out soon.

@neutralinsomniac
Copy link

Works flawlessly over here. Thank you so much for your dedication and attention to detail with this keyboard. It makes using my flip phone an absolute dream.

@asherGe
Copy link

asherGe commented Apr 26, 2024

Fantastico! Great work. Congrats on the breakthrough and thanks for your perseverance! Sonim should make tt9 the default keyboard and compensate you with hefty sum!

@sspanak
Copy link
Owner

sspanak commented Apr 26, 2024

Works flawlessly over here. Thank you so much for your dedication and attention to detail with this keyboard. It makes using my flip phone an absolute dream.

Fantastico! Great work. Congrats on the breakthrough and thanks for your perseverance!

I couldn't have done it myself. I must thank you for cooperating, it was truly enjoyable teamwork!

Sonim should make tt9 the default keyboard and compensate you with hefty sum!

I wouldn't oppose that. 😛 And, I am open to collaboration with anyone. My philosophy is everyone is welcome to help in making Traditional T9 the best keyboard.

@wazroth
Copy link

wazroth commented Apr 26, 2024

So far 30.30 is working a treat for me on my xp3900. Thanks for the hard work! Will update if I notice anything funny about OK behavior.

@sspanak sspanak linked a pull request Apr 30, 2024 that will close this issue
@sspanak
Copy link
Owner

sspanak commented May 1, 2024

With the new version just around the corner, I think it is time to finally close this issue. I believe all discussed problems are solved.

Again, thank you all for testing and for throwing ideas around, eventually leading to fixing all bugs. I couldn't have done it on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working device hack A device bug that requires a hack on our side
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants