android-keyboard icon indicating copy to clipboard operation
android-keyboard copied to clipboard

Bug: The REDO command is incorrect

Open HaroonRehman opened this issue 1 month ago • 7 comments

Reproduction steps

If you use the Undo in FUTO it works as it is mapped to CTRL + Z.

However the Redo in android is CTRL + SHIFT + Z, its not CTRL + Y.

FUTO is trying to hit CTRL + Y on Redo which doesn't work on Android and there is not even customizable option that we can map the right command from the UI.

Actual result

If you use the Undo in FUTO it works as it is mapped to CTRL + Z.

However the Redo in android is CTRL + SHIFT + Z, its not CTRL + Y.

FUTO is trying to hit CTRL + Y on Redo which doesn't work on Android and there is not even customizable option that we can map the right command from the UI.

Expected result

If you use the Undo in FUTO it works as it is mapped to CTRL + Z.

However the Redo in android is CTRL + SHIFT + Z, its not CTRL + Y.

FUTO is trying to hit CTRL + Y on Redo which doesn't work on Android and there is not even customizable option that we can map the right command from the UI.

Keyboard Version

Latest downloaded from your main website about two days ago.

Which android version are you using?

Android 11

Which device are you using?

Realme 6 Pro

Which operating system are you using?

Realme UI 2.0

References

No response

HaroonRehman avatar Oct 14 '26 09:10 HaroonRehman

Both Redo shortcuts should work with FUTO Keyboard, the issue you are having might be app specific. Which app are you trying to use Undo/Redo in, and does Ctrl + Shift + Z actually work there?

orhan98 avatar Oct 14 '26 17:10 orhan98

Please Verify yourself on Google Search "is native redo command ctrl y or ctrl shift z in android"

The Dev Mentioned from your team that you guys sending CTRL + Y as a Redo however its not a native Redo Command for android, some apps specifically try to hit Redo for you when you send a CTRL + Y like Chrome or GitHub App etc in reality its not system level command that android registers it as Redo.

Since you have implemented non native Redo Command many apps does not register it as redo like Google Messages, Google App, Gemini App. Its not a app level issue its issue with the wrong command that you sending on Android system, when I use Hackers Keyboard I can do Redo by CTRL + Shift + Z in all apps l.

I have recorded a video but It is not uploading here maybe due to size I guess but the screenshot should be enough.

IMG_20261015_181542.jpg

HaroonRehman avatar Oct 15 '26 13:10 HaroonRehman

Here is the Video It tells what is native Redo command for Android and also demonstrate that CTRL Shift Z regardless of app is working while CTRL Y is mostly not cuz it's not actual system command for Redo in Android

https://github.com/user-attachments/assets/0c2b33d2-2825-4067-8d4c-5cd10200de3e

HaroonRehman avatar Oct 15 '26 13:10 HaroonRehman

@abb128

HaroonRehman avatar Oct 15 '26 17:10 HaroonRehman

Hi, do you have a primary source for this CTRL+SHIFT+Z being standard? In the video you only showed an AI generated answer. As far as I know there is no standard and some apps accept CTRL+Y while others accept CTRL+SHIFT+Z. The action exists as a best effort anyway since not all apps accept these shortcuts at all. Changing it may make some apps work while breaking others. I tested and redo currently does work in all apps using standard Android TextView widget per the platform implementation, as well as Signal, Discord, Google Play

abb128 avatar Oct 15 '26 19:10 abb128

@abb128 @orhan98 @petabyt @bwees @markharding

Here's official Documentation from Android, it clearly mentions the Official commands including the Redo one which is CTRL + Shift + Z

"Ctrl+Z/Ctrl+Shift+Z Undo/redo" https://developer.android.com/develop/ui/compose/touch-input/keyboard-input/commands#:~:text=Ctrl%2BZ,Undo/redo

IMG_20261016_153417.jpg

IMG_20261016_153453.jpg

HaroonRehman avatar Oct 16 '26 10:10 HaroonRehman

@abb128

I have analyzed the Architecture of FUTO keyboard it uses the sendKeyEvent method to simulate a hardware keyboard's instruction and send a CTRL Z etc.

"This method can be used to send key events to the application. For example, an on-screen keyboard may use this method to simulate a hardware keyboard." https://developer.android.com/reference/android/view/inputmethod/InputConnection#:~:text=This%20method%20can%20be%20used%20to%20send%20key%20events%20to%20the%20application.%20For%20example%2C%20an%20on%2Dscreen%20keyboard%20may%20use%20this%20method%20to%20simulate%20a%20hardware%20keyboard.

HaroonRehman avatar Oct 16 '26 11:10 HaroonRehman