mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
fixed how menu button is handled...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
427d17b6c8
commit
fcaa38a6dd
@ -337,7 +337,7 @@ module.GLOBAL_KEYBOARD = {
|
||||
|
||||
|
||||
// ribbon image stuff...
|
||||
Menu: 'browseActions!: "/Image/" -- Image menu...',
|
||||
Menu: 'showContextMenu',
|
||||
alt_I: 'Menu',
|
||||
alt_R: 'browseActions: "/Ribbon/" -- Ribbon menu...',
|
||||
|
||||
|
||||
@ -1836,6 +1836,14 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
|
||||
'ui-browse-actions',
|
||||
],
|
||||
|
||||
actions: actions.Actions({
|
||||
showContextMenu: ['Interface/Show context menu...',
|
||||
uiDialog(function(){
|
||||
return this.current ?
|
||||
this.browseActions('/Image/')
|
||||
: this.browseActions() })],
|
||||
}),
|
||||
|
||||
handlers: [
|
||||
['imageMenu.pre',
|
||||
function(gid){
|
||||
|
||||
@ -2405,9 +2405,10 @@ var BrowserPrototype = {
|
||||
evt.preventDefault()
|
||||
evt.stopPropagation()
|
||||
|
||||
debounced
|
||||
&& that.select($(this))
|
||||
&& res.trigger('menu', txt)
|
||||
if(debounced){
|
||||
that.select($(this))
|
||||
res.trigger('menu', txt)
|
||||
}
|
||||
})
|
||||
// append text elements...
|
||||
.append(p)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user