# \[Bug\] BackSpace & Delete Button providing wrong input in Android VR Keyboard

**URL:** <https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071>\
**Category:** XR Development\
**Tags:** google-cardboard, Virtual-Reality, Vive, unreal-engine, keyboard, Oculus-Rift, question\
**Created:** [January 20, 2018, 4:04pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071 "2018-01-20T16:04:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_349a2e74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_349a2e74](https://forums.unrealengine.com/u/anonymous_user_349a2e74)\
**Post date:** [January 20, 2018, 4:04pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/1 "2018-01-20T16:04:53Z")

</div>

Hello Support,

I have been working on developing Virtual Reality Keyboard for Google Cardboard. I am facing issues with 2 keys of Keyboard.

1. Space Key
2. Delete Key

I am getting wrong inputs from these two keys when I test Keyboard over my Phone. If I check in Unreal Editor, It all works fine. Also for Vive and Oculus it all works fine. But for Android, I am getting wrong inputs.

Here is the video : bkjEfuGSPWk

APK Link for testing: [https://drive.google.com/open?id=1gfnB0\_40U9B5mEiub8fGdusHN0cyb0Ap](https://drive.google.com/open?id=1gfnB0_40U9B5mEiub8fGdusHN0cyb0Ap)

I have tested over Unreal Engine version 4.16, 4.17, and 4.18. I found same issue over all the latest versions of Unreal.

Kindly let us know if there is bug related to same or there is something wrong I might be doing in the project.

Looking forward hearing back !

Thanks & Regards

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 22, 2018, 2:09pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/2 "2018-01-22T14:09:22Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form](https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form)

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_349a2e74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_349a2e74](https://forums.unrealengine.com/u/anonymous_user_349a2e74)\
**Post date:** [January 25, 2018, 12:26pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/3 "2018-01-25T12:26:42Z")

</div>

Hello Sean,

I have submitted the Bug to the [Unreal Engine Bug Submission Form - Formstack](https://epicgames.formstack.com/forms/unreal_engine_bug_submission_form)

But I am not able to track, where my Issue is being sent for analysis.

Will I get any email or response back from Epic itself ?

Thanks for sharing the right method to report bug.

Looking forward hearing from your end !

Thanks & Regards,

---

<div class="post-metadata">

**Author:** ![harry1511](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@harry1511](https://forums.unrealengine.com/u/harry1511)\
**Post date:** [May 11, 2019, 6:46am UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/4 "2019-05-11T06:46:33Z")

</div>

I want to bump this question up, as I am also experiencing the exact same issue with 4.21.2, and on Oculus Go. Anyone?

---

<div class="post-metadata">

**Author:** ![KABBALINAJI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KABBALINAJI](https://forums.unrealengine.com/u/KABBALINAJI)\
**Post date:** [May 14, 2019, 3:29pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/5 "2019-05-14T15:29:50Z")

</div>

Guys you can use LeftChop instead of Backspace!

---

<div class="post-metadata">

**Author:** ![harry1511](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@harry1511](https://forums.unrealengine.com/u/harry1511)\
**Post date:** [May 18, 2019, 6:00am UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/6 "2019-05-18T06:00:02Z")

</div>

Hi, you mean this “” ? I still find it is weird to use this to replace the function of Backspace. Is that intentional? Or a bug?

---

<div class="post-metadata">

**Author:** ![KABBALINAJI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KABBALINAJI](https://forums.unrealengine.com/u/KABBALINAJI)\
**Post date:** [June 24, 2019, 2:46pm UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/7 "2019-06-24T14:46:15Z")

</div>

I think it is a bug, and what i meant with my answer is the following:  
get the text from the text input, convert text to string, chop the last character from the string using LeftChop, and finally convert the string to text

---

<div class="post-metadata">

**Author:** ![tommybazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tommybazar](https://forums.unrealengine.com/u/tommybazar)\
**Post date:** [April 7, 2021, 9:02am UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/8 "2021-04-07T09:02:14Z")

</div>

It’s a bug - Android has a different mapping of special keys to TCHARs, but FSlateEditableTextLayout has hardcoded the Windows values.

See FSlateEditableTextLayout::HandleKeyChar.

I’m doing the following as a workaround, since Epic will probably never fix this.

For space, just send " " as a KeyChar, backspace is “\b”, don’t know about delete etc.

```
void UVRKeyboardLibrary::PropagateSpecialKeyEvent(FKey InKey)
{
		// Hacky workaround for Backspace on android becoming 'C' (because backspace on Android is 67, which is ANSI value for 'C').
		// And FSlateEditableTextLayout::HandleKeyChar has a hardcoded check for '\b'.
		// On windows, we can also just send \b for backspace and it works fine...
		if (InKey == EKeys::BackSpace)
		{
			KeyboardWidgetInteractor->SendKeyChar("\b");
		}
		else
		{
			KeyboardWidgetInteractor->PressAndReleaseKey(InKey);
		}
}
```

---

<div class="post-metadata">

**Author:** ![RealAero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/realaero/32/716140_2.png) [@RealAero](https://forums.unrealengine.com/u/RealAero)\
**Post date:** [February 3, 2023, 2:05am UTC](https://forums.unrealengine.com/t/bug-backspace-delete-button-providing-wrong-input-in-android-vr-keyboard/415071/10 "2023-02-03T02:05:33Z")

</div>

For anyone trying to fix this in blueprints:

Do a check for Android, add a sequence to Event Begin Play, and do “Get Platform Name” and do Equals Exactly (===) and compare with “Android” and set the bool to “IsAndroid” or similar.

Then in the “Use Modifier Button” function, for SpaceBar and Backspace, drag off of the “Key” input and select the “Select” node, where you can input the “IsAndroid” variable to the Index node. For Space Bar, on false select “Space Bar”, and for true, put “D”. For Backspace, on false, put “Backspace”, and for true, put “1”. For Enter, on false, put Enter, and on true, put “5”.

2 notes:

1. This is for cross platform games. If you are ONLY using Quest, you can skip all of these steps and just change the keys to 1, D, and 5. as described above.
2. It is 1, D and 5, due to ANSI TCHARs remapping Android when FSlateEditableTextLayout has hardcoded the Windows values, but I can confirm that it does work!

Unreal 5.0.3

P.S. Thanks ChatGPT!
