diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-09 16:23:02 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-09 16:23:02 +0100 |
commit | 7f55b048acf3e62fd7a8314df1af859c640f7026 (patch) | |
tree | b49df88f80d3bfebfd79830384eb2b565e24e69e /src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt | |
parent | f173ea5305d5d1b2565aea47729e738f46597f80 (diff) | |
download | kvision-7f55b048acf3e62fd7a8314df1af859c640f7026.tar.gz kvision-7f55b048acf3e62fd7a8314df1af859c640f7026.tar.bz2 kvision-7f55b048acf3e62fd7a8314df1af859c640f7026.zip |
Fix alert dialog ENTER key handling.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt | 2 |
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() |