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/FocusBox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/form/FocusBox.js') diff --git a/ui/form/FocusBox.js b/ui/form/FocusBox.js index c259f23..51e961b 100644 --- a/ui/form/FocusBox.js +++ b/ui/form/FocusBox.js @@ -1,4 +1,4 @@ -const ansi = require('../../ansi') +const ansi = require('../../util/ansi') const FocusElement = require('./FocusElement') @@ -19,13 +19,13 @@ module.exports = class FocusBox extends FocusElement { } drawTo(writable) { - if (this.isSelected) { + if (this.isFocused) { writable.write(ansi.invert()) } } didRenderTo(writable) { - if (this.isSelected) { + if (this.isFocused) { writable.write(ansi.resetAttributes()) } } -- cgit 1.3.0-6-gf8a5