aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-09 16:23:02 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-09 16:23:02 +0100
commit7f55b048acf3e62fd7a8314df1af859c640f7026 (patch)
treeb49df88f80d3bfebfd79830384eb2b565e24e69e /src/main/kotlin/pl
parentf173ea5305d5d1b2565aea47729e738f46597f80 (diff)
downloadkvision-7f55b048acf3e62fd7a8314df1af859c640f7026.tar.gz
kvision-7f55b048acf3e62fd7a8314df1af859c640f7026.tar.bz2
kvision-7f55b048acf3e62fd7a8314df1af859c640f7026.zip
Fix alert dialog ENTER key handling.
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt2
1 files changed, 1 insertions, 1 deletions
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()