Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Jan 10, 2023
1 parent 9a712ae commit 862243a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "console-gui-tools",
"version": "2.4.1",
"version": "2.4.2",
"description": "A simple library to draw option menu, text popup or other widgets and layout on a Node.js console.",
"main": "dist/esm/ConsoleGui.mjs",
"types": "dist/types/ConsoleGui.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/ConsoleGui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,16 @@ class ConsoleManager extends EventEmitter {
}
if (this.layoutOptions.type !== "single") {
if (key.name === "left") {
this.emit("layoutratiochanged", key)
this.layout.decreaseRatio(0.01)
this.refresh()
return
} else if (key.name === "right") {
this.emit("layoutratiochanged", key)
this.layout.increaseRatio(0.01)
this.refresh()
return
}
this.emit("layoutratiochanged", key)
}
this.emit("keypressed", key)
}
Expand Down

0 comments on commit 862243a

Please sign in to comment.