Skip to content

Commit

Permalink
disable new tab and new window shortcuts in hyper plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Nov 29, 2023
1 parent 65d307b commit 77ff51d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hyper/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hyper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyper-sunbeam",
"version": "0.0.19",
"version": "0.0.20",
"os": [
"darwin",
"linux"
Expand Down
8 changes: 8 additions & 0 deletions hyper/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,19 @@ function decorateConfig(config) {
});
}

// Adding Keymaps
function decorateKeymaps(keymaps) {
return Object.assign({}, keymaps, {
"tab:new": "",
"window:new": "",
});
}

module.exports = {
onApp,
onWindow,
onUnload,
decorateBrowserOptions,
decorateKeymaps,
decorateConfig,
};

0 comments on commit 77ff51d

Please sign in to comment.