fixed how menu button is handled...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-11 16:24:27 +03:00
parent 427d17b6c8
commit fcaa38a6dd
3 changed files with 13 additions and 4 deletions

View File

@ -337,7 +337,7 @@ module.GLOBAL_KEYBOARD = {
// ribbon image stuff... // ribbon image stuff...
Menu: 'browseActions!: "/Image/" -- Image menu...', Menu: 'showContextMenu',
alt_I: 'Menu', alt_I: 'Menu',
alt_R: 'browseActions: "/Ribbon/" -- Ribbon menu...', alt_R: 'browseActions: "/Ribbon/" -- Ribbon menu...',

View File

@ -1836,6 +1836,14 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
'ui-browse-actions', 'ui-browse-actions',
], ],
actions: actions.Actions({
showContextMenu: ['Interface/Show context menu...',
uiDialog(function(){
return this.current ?
this.browseActions('/Image/')
: this.browseActions() })],
}),
handlers: [ handlers: [
['imageMenu.pre', ['imageMenu.pre',
function(gid){ function(gid){

View File

@ -2405,9 +2405,10 @@ var BrowserPrototype = {
evt.preventDefault() evt.preventDefault()
evt.stopPropagation() evt.stopPropagation()
debounced if(debounced){
&& that.select($(this)) that.select($(this))
&& res.trigger('menu', txt) res.trigger('menu', txt)
}
}) })
// append text elements... // append text elements...
.append(p) .append(p)