Author: lektran
Date: Sat Nov 24 14:29:22 2007
New Revision: 597928
URL:
http://svn.apache.org/viewvc?rev=597928&view=revLog:
Prevent momentary flashes of previous keystrokes while switching screens in pos
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java
Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java?rev=597928&r1=597927&r2=597928&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java Sat Nov 24 14:29:22 2007
@@ -132,6 +132,10 @@
this.setLastActivity(System.currentTimeMillis());
+ // The input receives keyboard events even when it's page is deactivated, so
+ // we'll clear it early to prevent the characters from displaying momentarily
+ input.clearInput();
+
if (session.getUserLogin() == null) {
this.setLock(true);
} else {