From b03a59e8cf545aa3ae61a91e76f5cefa4f0c3701 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 15 Sep 2018 15:38:09 -0300 Subject: Fix keyPressed call order Before: , , , ... Now: , , , ... --- ui/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/Root.js b/ui/Root.js index 7e031d3..b2514ce 100644 --- a/ui/Root.js +++ b/ui/Root.js @@ -27,7 +27,7 @@ module.exports = class Root extends DisplayElement { handleData(buffer) { if (this.selectedElement) { const els = [ - ...this.selectedElement.directAncestors, this.selectedElement].reverse() + this.selectedElement, ...this.selectedElement.directAncestors] for (const el of els) { if (el instanceof FocusElement) { const shouldBreak = (el.keyPressed(buffer) === false) -- cgit 1.3.0-6-gf8a5