diff options
author | Mehdi Javan <32511762+mehdi-vaadin@users.noreply.github.com> | 2018-07-10 11:09:53 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-07-10 11:09:53 +0300 |
commit | efb6403e5b64cec40728f30f49543fa8aa48d891 (patch) | |
tree | b581344818a7cff423a9596d32bf3f4573153996 /client | |
parent | e6807bf8dc701263fa062a80d09708b54f6dba49 (diff) | |
download | vaadin-framework-efb6403e5b64cec40728f30f49543fa8aa48d891.tar.gz vaadin-framework-efb6403e5b64cec40728f30f49543fa8aa48d891.zip |
Improve ComboBox keyboard behavior when an item is selected (#11031)
Ignoring filtering options when right arrow, left arrow, home or end key is pressed.
Fixes #11016
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VComboBox.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VComboBox.java b/client/src/main/java/com/vaadin/client/ui/VComboBox.java index 6e0c400baa..f80927ec1d 100644 --- a/client/src/main/java/com/vaadin/client/ui/VComboBox.java +++ b/client/src/main/java/com/vaadin/client/ui/VComboBox.java @@ -2361,9 +2361,13 @@ public class VComboBox extends Composite implements Field, KeyDownHandler, case KeyCodes.KEY_ALT: case KeyCodes.KEY_DOWN: case KeyCodes.KEY_UP: + case KeyCodes.KEY_RIGHT: + case KeyCodes.KEY_LEFT: case KeyCodes.KEY_PAGEDOWN: case KeyCodes.KEY_PAGEUP: case KeyCodes.KEY_ESCAPE: + case KeyCodes.KEY_HOME: + case KeyCodes.KEY_END: // NOP break; default: |