From 769413468e88acba1a180baa0113139d929a3b9f Mon Sep 17 00:00:00 2001 From: liam4 Date: Mon, 3 Jul 2017 18:59:57 -0300 Subject: A long-due cleanup + examples + things ..Obviously this breaks old things (particularly, see changes in FocusElement). --- ui/form/Button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/form/Button.js') diff --git a/ui/form/Button.js b/ui/form/Button.js index 9a3d2f7..86347a0 100644 --- a/ui/form/Button.js +++ b/ui/form/Button.js @@ -1,5 +1,5 @@ -const ansi = require('../../ansi') -const telc = require('../../telchars') +const ansi = require('../../util/ansi') +const telc = require('../../util/telchars') const FocusElement = require('./FocusElement') @@ -29,7 +29,7 @@ module.exports = class ButtonInput extends FocusElement { } drawTo(writable) { - if (this.isSelected) { + if (this.isFocused) { writable.write(ansi.invert()) } -- cgit 1.3.0-6-gf8a5