From 7f55b048acf3e62fd7a8314df1af859c640f7026 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 9 Feb 2018 16:23:02 +0100 Subject: Fix alert dialog ENTER key handling. --- src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt b/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt index f5062615..8d83ee51 100644 --- a/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt +++ b/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt @@ -83,7 +83,7 @@ open class Alert( } } this.addButton(okButton) - this.setInternalEventListener { + this.setEventListener { keydown = { e -> if (e.keyCode == ENTER_KEY) { hide() -- cgit