summaryrefslogtreecommitdiffstats
path: root/documentation/advanced
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/advanced')
-rw-r--r--documentation/advanced/advanced-shortcuts.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/advanced/advanced-shortcuts.asciidoc b/documentation/advanced/advanced-shortcuts.asciidoc
index 0a999c936d..fa3c92fdae 100644
--- a/documentation/advanced/advanced-shortcuts.asciidoc
+++ b/documentation/advanced/advanced-shortcuts.asciidoc
@@ -154,8 +154,8 @@ public class DefaultButtonExample extends CustomComponent
HorizontalLayout buttons = new HorizontalLayout();
// Create buttons and define their listener methods.
- Button ok = new Button("OK", this, "okHandler");
- Button cancel = new Button("Cancel", this, "cancelHandler");
+ Button ok = new Button("OK", event -> okHandler());
+ Button cancel = new Button("Cancel", event -> cancelHandler());
// Have the unmodified Enter key cause an event
Action action_ok = new ShortcutAction("Default key",