Skip to content

Commit ab6f00f

Browse files
committed
Revert engine changes introduced in v1.49.0 (#156) (will re-introduce it as of v2.0.0)
1 parent 773d52b commit ab6f00f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
v1.49.3
3+
-------
4+
5+
Revert engine changes introduced in v1.49.0 (#156) (will re-introduce it as of v2.0.0)
6+
7+
28
v1.49.2
39
-------
410

lib/document/BaseMenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ BaseMenu.prototype.onKey = function( key , trash , data ) {
297297
}
298298
break ;
299299
case 'submenu' :
300-
if ( this.hasSubmenu && this.focusChild?.def?.items ) {
300+
//if ( this.hasSubmenu && this.focusChild?.def?.items ) {
301+
if ( this.hasSubmenu && this.focusChild && this.focusChild.def && this.focusChild.def.items ) {
301302
this.openSubmenu( this.focusChild.value , this.focusChild ) ;
302303
if ( this.submenu ) { this.document.giveFocusTo( this.submenu ) ; }
303304
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "terminal-kit",
3-
"version": "1.49.2",
3+
"version": "1.49.3",
44
"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!",
55
"main": "lib/termkit.js",
66
"directories": {
77
"test": "test"
88
},
99
"engines": {
10-
"node": ">=14.0.0"
10+
"node": ">=10.0.0"
1111
},
1212
"dependencies": {
1313
"@cronvel/get-pixels": "^3.4.0",

0 commit comments

Comments
 (0)