Skip to content

Commit

Permalink
Revert engine changes introduced in v1.49.0 (#156) (will re-introduce…
Browse files Browse the repository at this point in the history
… it as of v2.0.0)
  • Loading branch information
cronvel committed Feb 20, 2021
1 parent 773d52b commit ab6f00f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

v1.49.3
-------

Revert engine changes introduced in v1.49.0 (#156) (will re-introduce it as of v2.0.0)


v1.49.2
-------

Expand Down
3 changes: 2 additions & 1 deletion lib/document/BaseMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ BaseMenu.prototype.onKey = function( key , trash , data ) {
}
break ;
case 'submenu' :
if ( this.hasSubmenu && this.focusChild?.def?.items ) {
//if ( this.hasSubmenu && this.focusChild?.def?.items ) {
if ( this.hasSubmenu && this.focusChild && this.focusChild.def && this.focusChild.def.items ) {
this.openSubmenu( this.focusChild.value , this.focusChild ) ;
if ( this.submenu ) { this.document.giveFocusTo( this.submenu ) ; }
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "terminal-kit",
"version": "1.49.2",
"version": "1.49.3",
"description": "256 colors, keys and mouse, input field, progress bars, screen buffer (including 32-bit composition and image loading), text buffer, and many more... Whether you just need colors and styles, build a simple interactive command line tool or a complexe terminal app: this is the absolute terminal lib for Node.js!",
"main": "lib/termkit.js",
"directories": {
"test": "test"
},
"engines": {
"node": ">=14.0.0"
"node": ">=10.0.0"
},
"dependencies": {
"@cronvel/get-pixels": "^3.4.0",
Expand Down

0 comments on commit ab6f00f

Please sign in to comment.