mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added back tool shortctus
Made Events an IIFE instead of a class, fixed a bug in the selection tool.
This commit is contained in:
@@ -14,6 +14,8 @@ const TopMenuModule = (() => {
|
||||
|
||||
//when you click a main menu items button
|
||||
Events.on('click', menuButton, function (e) {
|
||||
// Close the already open menus
|
||||
closeMenu();
|
||||
// Select the item
|
||||
Util.select(e.target.parentElement);
|
||||
});
|
||||
@@ -80,6 +82,8 @@ const TopMenuModule = (() => {
|
||||
Events.on('click', currSubmenuButton, Dialogue.showDialogue, 'changelog');
|
||||
break;
|
||||
}
|
||||
|
||||
Events.on('click', currSubmenuButton, function() {TopMenuModule.closeMenu();});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user