mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Context menus can now handle different types and commands, as well as submenus
This commit is contained in:
@@ -19,4 +19,6 @@ class ContextMenu
|
||||
do (item) =>
|
||||
item.click = =>
|
||||
global.atomApplication.sendCommandToWindow(item.command, @atomWindow, item.commandOptions)
|
||||
else if item.submenu
|
||||
@createClickHandlers(item.submenu)
|
||||
item
|
||||
|
||||
Reference in New Issue
Block a user