diff options
author | Marc Englund <marc.englund@itmill.com> | 2010-03-23 15:40:24 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2010-03-23 15:40:24 +0000 |
commit | 6c663d40425234642afecd7f1d36c7e62ac308ab (patch) | |
tree | 256d814f322ab4ef85ca6e8089a957d9e8ae4446 /src/com/vaadin/ui/Button.java | |
parent | 30684aae91c5f82c242d6f8daa584373dcb01fdc (diff) | |
download | vaadin-framework-6c663d40425234642afecd7f1d36c7e62ac308ab.tar.gz vaadin-framework-6c663d40425234642afecd7f1d36c7e62ac308ab.zip |
Some API changes for #875 as discussed at length.
svn changeset:12048/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/ui/Button.java')
-rw-r--r-- | src/com/vaadin/ui/Button.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java index 08fab9772a..004bf43a8f 100644 --- a/src/com/vaadin/ui/Button.java +++ b/src/com/vaadin/ui/Button.java @@ -357,16 +357,16 @@ public class Button extends AbstractField { public ClickShortcut setClickShortcut(int keyCode, int... modifiers) { ClickShortcut old = clickShortcut; if (old != null) { - removeAction(old); + removeShortcutListener(old); } clickShortcut = new ClickShortcut(this, keyCode, modifiers); - addAction(clickShortcut); + addShortcutListener(clickShortcut); return old; } public void removeClickShortcut() { if (clickShortcut != null) { - removeAction(clickShortcut); + removeShortcutListener(clickShortcut); clickShortcut = null; } } |