diff options
Diffstat (limited to 'ui/form/FocusElement.js')
-rw-r--r-- | ui/form/FocusElement.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/form/FocusElement.js b/ui/form/FocusElement.js index 25a0693..5967e26 100644 --- a/ui/form/FocusElement.js +++ b/ui/form/FocusElement.js @@ -9,19 +9,19 @@ module.exports = class FocusElement extends DisplayElement { this.cursorX = 0 this.cursorY = 0 - this.isSelected = false + this.isFocused = false } - focus(socket) { - // Do something with socket. Should be overridden in subclasses. + focused() { + // Should be overridden in subclasses. - this.isSelected = true + this.isFocused = true } - unfocus() { + unfocused() { // Should be overridden in subclasses. - this.isSelected = false + this.isFocused = false } keyPressed(keyBuf) { |