From b06bdfb83db5900a276a1dc5a4f9957bdf4ff9c0 Mon Sep 17 00:00:00 2001 From: Torne Wuff Date: Mon, 30 Sep 2013 23:40:26 +0100 Subject: Hopefully fix the majority of keyboard issues. It seems that the majority of keyboard issues were caused by quirks implemented for the convenience of the HTC Dream (shift+numbers generating function keys on the hardware keyboard and ctrl+numbers generating function keys on the software keyboard). Turn these into settings, which are disabled by default unless the device is indeed a HTC Dream. Also, add a setting (defaulting to on) which determines whether the volume keys change the font size. Disabling this restores normal volume control functionality. --- res/values/strings.xml | 15 +++++++++++++ res/xml/preferences.xml | 21 +++++++++++++++++ src/org/connectbot/HostListActivity.java | 14 +++++++++++- .../connectbot/service/TerminalKeyListener.java | 26 ++++++++++++++++------ src/org/connectbot/util/PreferenceConstants.java | 4 ++++ 5 files changed, 72 insertions(+), 8 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1392622..f8f8f89 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -158,6 +158,21 @@ "Hide status bar while in console" + + "Shift+num are F-keys" + + "On hardware keyboards, number keys send F1-F10 with shift" + + + "Ctrl+num are F-keys" + + "On software keyboards, number keys send F1-F10 with ctrl" + + + "Volume keys change font size" + + "Font size can also be changed in per-host settings" + "Remember keys in memory" diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 8726ea4..5fb836b 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -84,6 +84,27 @@ android:defaultValue="false" /> + + + + + +