diff options
author | Felype Santiago Ferreira <felype@vaadin.com> | 2014-03-25 14:55:47 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-03-28 08:15:25 +0000 |
commit | 29e7df26ad034eacdbf37fc03985873aabda6576 (patch) | |
tree | 7330af1702e597fd37247c1b3c248ee5a4c0c6a1 /client | |
parent | a4732225bb9336131a9bfb39782279e7ba7ed950 (diff) | |
download | vaadin-framework-29e7df26ad034eacdbf37fc03985873aabda6576.tar.gz vaadin-framework-29e7df26ad034eacdbf37fc03985873aabda6576.zip |
Makes combobox work with pasted texts. (#13214).
Change-Id: I74db581d7aae1278024db4e5ed8e3a3b3abc56be
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VFilterSelect.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VFilterSelect.java b/client/src/com/vaadin/client/ui/VFilterSelect.java index 63c8d3dbf9..0bc4e0d75b 100644 --- a/client/src/com/vaadin/client/ui/VFilterSelect.java +++ b/client/src/com/vaadin/client/ui/VFilterSelect.java @@ -1147,6 +1147,32 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler, popupOpener.addClickHandler(this); setStyleName(CLASSNAME); + + sinkEvents(Event.ONPASTE); + } + + /* + * (non-Javadoc) + * + * @see + * com.google.gwt.user.client.ui.Composite#onBrowserEvent(com.google.gwt + * .user.client.Event) + */ + @Override + public void onBrowserEvent(Event event) { + super.onBrowserEvent(event); + + if (event.getTypeInt() == Event.ONPASTE) { + if (textInputEnabled) { + Scheduler.get().scheduleDeferred(new ScheduledCommand() { + + @Override + public void execute() { + filterOptions(currentPage); + } + }); + } + } } /** |