« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui/Dialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/Dialog.js b/ui/Dialog.js
index d200d08..0b77b12 100644
--- a/ui/Dialog.js
+++ b/ui/Dialog.js
@@ -50,6 +50,7 @@ module.exports = class Dialog extends FocusElement {
   keyPressed(keyBuf) {
     if (telc.isCancel(keyBuf)) {
       this.emit('cancelled')
+      return false
     }
   }
 }