summaryrefslogtreecommitdiffstats
path: root/gui/input.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-01 16:15:29 +0100
committerthat <github@that.at>2015-02-01 16:15:29 +0100
commit5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c (patch)
tree9062098e69c830cf851c9fc9953c40f624d60c9f /gui/input.cpp
parentgui: fix hardware keyboard (diff)
downloadandroid_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar.gz
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar.bz2
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar.lz
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar.xz
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.tar.zst
android_bootable_recovery-5fa54ce78b4ee0f7c7b038a55b5b83a333c6934c.zip
Diffstat (limited to '')
-rw-r--r--gui/input.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gui/input.cpp b/gui/input.cpp
index 84ee17b16..bb7bdf853 100644
--- a/gui/input.cpp
+++ b/gui/input.cpp
@@ -714,11 +714,7 @@ int GUIInput::NotifyKeyboard(int key)
if (mCursorLocation == -1) {
variableValue += key;
} else {
- const char newchar = (char)key;
- const char* a = &newchar;
- string newstring = a;
- newstring.resize(1);
- variableValue.insert(mCursorLocation + skipChars, newstring);
+ variableValue.insert(mCursorLocation + skipChars, 1, key);
mCursorLocation++;
}
isLocalChange = true;