(Android) key bind preference changes

This commit is contained in:
ToadKing 2013-01-31 20:41:57 -05:00
parent 5bc5195bc4
commit c479cc9961
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<string name="cores_guide">Cores Guide</string>
<string name="overlay_guide">Overlay How-to Guide</string>
<string name="shader_pack">Shader Pack</string>
<string name="key_bind_title">Press the button to use, or select it from the list</string>
<string name="key_bind_title">Select the button to use</string>
<string name="key_bind_clear">Unbind</string>
<string name="report_ime">Report IME</string>
<string name="key_bind_detect">Detect</string>

View File

@ -85,6 +85,7 @@ class KeyBindPreference extends DialogPreference implements View.OnKeyListener,
public void onClick(View v) {
grabKeyCode = true;
keyText.setText("Press key to use");
keyText.requestFocus();
}
});
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);