mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-03 11:59:52 +01:00
[bug] fix modal not closing when opening menu by keyboard shortcut
This commit is contained in:
parent
ac8b56c838
commit
0e703dfd31
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nighttab",
|
||||
"version": "4.8.0",
|
||||
"version": "4.8.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nighttab",
|
||||
"version": "4.8.0",
|
||||
"version": "4.8.1",
|
||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -101,9 +101,26 @@ var keyboard = (function() {
|
||||
window.addEventListener("keydown", function(event) {
|
||||
// ctrl+alt+m
|
||||
if (event.ctrlKey && event.altKey && event.keyCode == 77) {
|
||||
if (state.get.current().link.add) {
|
||||
if (state.get.current().link.edit) {
|
||||
link.edit.item.close();
|
||||
modal.close();
|
||||
shade.close();
|
||||
data.save();
|
||||
} else if (state.get.current().link.add) {
|
||||
link.add.item.close();
|
||||
modal.close();
|
||||
shade.close();
|
||||
data.save();
|
||||
} else if (state.get.current().group.edit) {
|
||||
link.edit.group.close();
|
||||
modal.close();
|
||||
shade.close();
|
||||
data.save();
|
||||
} else if (state.get.current().group.add) {
|
||||
link.add.group.close();
|
||||
modal.close();
|
||||
shade.close();
|
||||
data.save();
|
||||
} else if (state.get.current().modal) {
|
||||
modal.close();
|
||||
shade.close();
|
||||
|
@ -1,6 +1,6 @@
|
||||
var version = (function() {
|
||||
|
||||
var current = "4.8.0";
|
||||
var current = "4.8.1";
|
||||
|
||||
var name = "Naughty Goose";
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "nightTab",
|
||||
"short_name": "nightTab",
|
||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||
"version": "4.8.0",
|
||||
"version": "4.8.1",
|
||||
"manifest_version": 2,
|
||||
"chrome_url_overrides": {
|
||||
"newtab": "index.html"
|
||||
|
Loading…
Reference in New Issue
Block a user