svn commit: r597928 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r597928 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PosScreen.java

lektran
Author: lektran
Date: Sat Nov 24 14:29:22 2007
New Revision: 597928

URL: http://svn.apache.org/viewvc?rev=597928&view=rev
Log:
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 {