mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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...
|
// 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...',
|
||||||
|
|
||||||
|
|||||||
@ -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){
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user