From 1a47eab6b2692a880cea5c7df343ecf5655c1292 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 12 Aug 2009 22:43:40 +0000 Subject: Fix logic error in last commit git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@393 df292f66-193f-0410-a5fc-6d59da041ff2 --- src/org/connectbot/service/TerminalBridge.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/connectbot/service/TerminalBridge.java b/src/org/connectbot/service/TerminalBridge.java index 1d69989..1880d26 100644 --- a/src/org/connectbot/service/TerminalBridge.java +++ b/src/org/connectbot/service/TerminalBridge.java @@ -492,8 +492,11 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener { Configuration.HARDKEYBOARDHIDDEN_YES; // Ignore all key-up events except for the special keys - if (event.getAction() == KeyEvent.ACTION_UP && - hardKeyboard && !hardKeyboardHidden) { + if (event.getAction() == KeyEvent.ACTION_UP) { + // There's nothing here for virtual keyboard users. + if (!hardKeyboard || (hardKeyboard && hardKeyboardHidden)) + return false; + // skip keys if we aren't connected yet or have been disconnected if (disconnected || transport == null) return false; -- cgit v1.2.3