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

Backspace key not functioning in GMail chat/Google Chat. #1065

Open
6 of 7 tasks
nik282000 opened this issue Sep 13, 2024 · 9 comments · Fixed by #1162
Open
6 of 7 tasks

Backspace key not functioning in GMail chat/Google Chat. #1065

nik282000 opened this issue Sep 13, 2024 · 9 comments · Fixed by #1162
Labels
bug Something isn't working

Comments

@nik282000
Copy link

nik282000 commented Sep 13, 2024

Steps to reproduce

When entering text in the message input box all typeable characters (a-z, 0-9, symbols) and spacebar slide functions work but the backspace key has no effect. This is limited to the chat function of the GMail and Google Chat, in all other text input boxes backspace works.

Expected behavior

The backspace key should delete the character to the left of the cursor.

Actual behavior

There is a haptic feedback that backspace was tapped but no effect on the text input box.

version of the program

3.4.7

Android version

Android 14

Device

Pixel 8

Other details

This is likely a Google problem but I tested with other keyboards and did not have any issues with backspace.

Acknowledgements

  • I have written a short but informative title.
  • I have updated the app to the latest version.
  • I have searched the existing issues and this is a new one, NOT a duplicate or related to another open issue.
  • This is not a question or a discussion, in which case I should have gone to lemmy.ml/c/thumbkey
  • This is a single bug report, in case of multiple bugs I will open a separate issue for each one (they can always link to each other if related)
  • I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements. 🤡
  • I have filled out all of the requested information in this form.
@nik282000 nik282000 added the bug Something isn't working label Sep 13, 2024
@dessalines
Copy link
Owner

They're probably hijacking key events like backspace. I'd need someone who has those apps to debug them and see what's going on.

@Norgus
Copy link
Contributor

Norgus commented Sep 14, 2024

I also use Android 14 and have this issue now. Device is FairPhone 5, app just updated to 3.4.8.

I got mad and cleared app storage of thumbkey and google chat, even restarted the phone. Same symptoms persist, other keyboards' backspace working in gchat, Thumb-key backspace working in all other apps I tested.

I hope whatever Google did affected other popular keyboards so they feel the need to fix it.

@CarVac
Copy link

CarVac commented Sep 18, 2024

I have this too now. Long-press to delete whole words works, though.

@rigel314
Copy link

The Google Chat app seems to ignore more than just the KEYCODE_DEL key event, but other key events too, like the KEYCODE_DPAD_RIGHT. I can see both being sent in logcat, but neither makes an action in Google Chat. Though slide gestures on the spacebar will still move the cursor more than one character.

I made a quick local build of thumb-key where instead of the backspace button sending a KEYCODE_DEL key event, it uses ime.currentInputConnection.deleteSurroundingText(1,0);. This makes backspace work, but it doesn't have the same semantics - for instance, if any text is selected, it deletes a character before the selected text rather than deleting the selected text.

It does seem like Google Chat is just ignoring key events.

@dessalines
Copy link
Owner

In that case we should probably close this as no fix, and someone here should link or open up an issue on googles bug tracker for this.

@dessalines dessalines closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
@gitterrost4
Copy link
Contributor

@dessalines I have actually looked at other open source keyboards (which all work in Google Chat) and it seems they all don't send a KEYCODE_DEL, but look if there is a selection and use deleteSurroundingText(1,0); if not and commitText("",0) if there is. I have it coded up and would submit a PR if this issue can be reopened.

@dessalines
Copy link
Owner

Sure.

@dessalines
Copy link
Owner

dessalines commented Dec 8, 2024

As mentioned in the above issue, open up issues in gmail chat and google chat for this bug, and link them here. Those apps should not be hijacking key events and breaking keyboards. That goes against google's own recommendations for app development.

Otherwise we'd need guidance from google as to how IME's are supposed to send delete events.

@gitterrost4
Copy link
Contributor

I created an issue on Google's issue tracker.

https://issuetracker.google.com/issues/382864243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants