Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit d9e2ace

Browse files
committed
Merge branch 'master' of github.com:shockone/black-screen
2 parents 75dffc6 + a472379 commit d9e2ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "black-screen",
33
"productName": "Black Screen",
44
"description": "A terminal emulator for the 21st century.",
5-
"version": "0.0.43",
5+
"version": "0.0.45",
66
"main": "compiled/src/main/Main.js",
77
"author": "Volodymyr Shatskyi <[email protected]>",
88
"repository": {

src/views/1_ApplicationComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class ApplicationComponent extends React.Component<{}, State> {
107107
}
108108

109109
if (event.metaKey && event.keyCode >= KeyCode.One && event.keyCode <= KeyCode.Nine) {
110-
const newTabIndex = parseInt(event.key, 10) - 1;
110+
const newTabIndex = (event.keyCode === KeyCode.Nine ? this.tabs.length : parseInt(event.key, 10)) - 1;
111111

112112
if (this.tabs.length > newTabIndex) {
113113
this.activeTabIndex = newTabIndex;

0 commit comments

Comments
 (0)