]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6978 VFilterSelect should consume key events and should not pass them to action...
authorArtur Signell <artur.signell@itmill.com>
Thu, 17 Nov 2011 11:48:23 +0000 (11:48 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 17 Nov 2011 11:48:23 +0000 (11:48 +0000)
svn changeset:22036/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java

index 29e1221a0630d0c235339a3aea1fcc9eb1e2ef0c..7cc9ba374b61ba1126e6c4857a1c185fa44662da 100644 (file)
@@ -1509,6 +1509,10 @@ public class VFilterSelect extends Composite implements Paintable, Field,
             filterOptions(currentPage);
             // onBlur() takes care of the rest
             break;
+        case KeyCodes.KEY_ESCAPE:
+            reset();
+            event.stopPropagation();
+            break;
         case KeyCodes.KEY_ENTER:
             if (suggestionPopup.menu.getKeyboardSelectedItem() == null) {
                 /*
@@ -1560,10 +1564,8 @@ public class VFilterSelect extends Composite implements Paintable, Field,
             case KeyCodes.KEY_UP:
             case KeyCodes.KEY_PAGEDOWN:
             case KeyCodes.KEY_PAGEUP:
-                ; // NOP
-                break;
             case KeyCodes.KEY_ESCAPE:
-                reset();
+                ; // NOP
                 break;
             default:
                 if (textInputEnabled) {