Context menu show on specific point click

Hi all

I see an extension HTML for InDesign CC 2014 for Win and Mac. I managed to display a popup using CEPInterface 5.2

Here's the code,

function CreateContextMenu() {

  csInterface.setContextMenu(contextMenuXML, contextMenuClickedHandler);


}

This function is called when the user clicks inside a box. The problem I am facing is that once I put the context menu, no matter where I right click on the inside of the Panel, the context menu is created. Can I put it so that the context menu is displayed only when I click on the box?

Thank you!

Hello

I don't know if it would work, but how about a listener 'click' on the body with Event.stopPropagation () or preventDefault() element; Then check the target of the event, and if this is the item you want, then yourElement.dispatchEvent (new Event ('click'))?

See references here: creation and raising events - the Web Developer's guide | DND and Event.stopPropagation () - Web APIs | DND

Just a suggestion, let me know if that helps

Concerning

Davide Barranca

---

www.davidebarranca.com

www.cs-extensions.com

Tags: Adobe

Similar Questions

  • How to add "Add to Windows Media Player list" to the context Menu of the specific file types

    I use Windows XP Professional 64-bit and I can't understand how to do this, even after hours of reading on google.

    When I right click. MP3 files or. AVI files, they give the option to context menu "Add to Windows Media Player list" but other files that I wish it would show for such as. MKV or. AAC, I can't show him for. I have searched everywhere in the windows registry and cannot for the life of understand me this.

    It works perfectly well and appears on our windows vista computer and the old 32-bit windows xp computer, but it does not appear on my new current.

    How I'd go about adding this choice "Add to Windows Media Player list" when I right click on. MKV and. AAC files?

    If possible, I would like to do this without having to install any software. I don't have a problem with the registry change and prefer it if possible.

    Hello

    You can follow the steps in the link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/how-to-add-context-menu-commands-for-file-types/883b8423-8AC2-43bc-b0ae-3ac2be8e89e7

    You can also post your request in the link:

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threads

  • Firefox devouring 2 GIS of RAM, getting slow context menu

    Ive tried everything in firefox so far, but simply not working for me

    i disabled addons manually to see whats gobbling up so much ram but nothing, i upgraded, downgraded all the plugins and nothing either (the new flash plugin was giving me issues so now im on an older one btw, was still having issues with recent flash version so thats not it) i added addons that supposedly reduce ram usage but nothing
    

    I have enabled and disabled hardware acceleration but nothing either

    I deleted the cache and everything that firefox can clear except browsing history but nada

    I used speedfox to try and possibly difficulty this inconvenience, but nothing

    I've updated, downgraded and basically did everything possible with the drivers for my computer but nothing either

    Firefox is all designed to be like that and behave like an app which does not release its RAM after its used? in the Task Manager its show me anywhere between 1.2 GB of RAM used or more 2 GB! This is not normal, especially since I was only 4 light tabs open, all this and to add the context menu loading when I right-click is slow as molasses

    Please, please, can someone just help me out here? I've added a newspaper thing that could possibly help, idk whats even carried out more of that, one day firefox was large and using no more than 1 GB in total with more than 100 open tabs but now with 4 right after firefox was open for a long time his consuming a quarter of my total RAM for a browser that's a little crazy especially that in the days, I used to use Opera itd use not more than 800 MB at least

    Have you tried a new profile with extensions less?

    I do not expect a profile for "sour go" in 4 months, but many installed extensions (enabled or disabled) and how much others who were tried, found unfit and then uninstalled, who can understand what went wrong and why?

    Extensions uninstall cleanly, most or all of the preferences created are left after the extension is uninstalled. Who can or "clog" the prefs.js file, and can affect other extensions. With issues I personally had in the past, I save the profile before you install an extension that I've not used before or want to try. If this 'new' extension does meet my needs or causes problems with existing extensions, I wouldn't waste my time to uninstall this 'new' extension and then find maybe I ' fixin got more to do. " I just deleted this profile I just break off and drag the backup of this profile in place!

    Regarding the total number of extensions, I use several profiles who all my "28 basic extensions ' and then install the appropriate extensions for each of these profile for use on the internet.

    1 banking - security type extensions AND automatic erasure of the data of Firefox I started closing the browser (total 35 extensions) = launched by a keypad created using the Windows key, so that no one else using my PC won't even has a profile on this PC

    2 ' default' profile - used to advertise the default browser links - just the basic 28 extensions

    3. general surfing - a total of 55 extensions
    4. support - used on support forum and discussion websites - total of 49 extensions

    5 web development - used for the display of Web sites from the point of view of trying to understand why a Web site "does not work in Firefox, but done in Chrome / IE / Safari - extensions of 45 in total.

    See my next assignment for "advice", I'll probably max on this "response" where characters allowed.

    Ed

    Change, I've marked this as the thread solution. The real solution to the OP is in suite on wire/issues/979200. Apparently just disable two of the very many addons solves the problem. ~ J99

  • Starting stupid question, where is the context menu for the project?

    9 online help tell how make to enable some features in the project view toggle the preview area elements, change the size of thumbnail. The help says:

    «Right/ctrl-click the project view, and then select one of the following:...» »

    and it shows a screenshot of the menu, I need (http://help.adobe.com/en_US/premiereelements/using/WS5D044C3B-1939-4c8e-BC5A-97D122D4D73F. html).

    But no matter where I right click on the project view, I can't this context menu. If I'm on an item in the list, I get a menu with Clipboard functions, interpret the film, etc. No "Thumbnails" option or "views". No menu at all if I right click (or ctrl-click) click anywhere else. I've tried to get this context menu... what in the world I am doing wrong?

    Thank you

    -Mark

    My book offers more detailed advice.

    First, go to the window menu and select the option to display docking headers. Then in the upper right of the project Panel, click on the > button.

    These options are available through the context menu also, if you right-click on an empty spot on the project Panel, after the list of media clips.

  • Context menu to yahoo mail IN the context menu of firefox

    With yahoo *new e-mail format*, you must right-click on any custom folders, you made and choose * Remove * from the context menu, BUT this menu is often UNDER own Firefox context menu, it's impossible to click on anything on their.

    I've written for them, but as expected, they say that's not their fault.

    I was wondering if there is an option modifier key to temporarily disable the context menu of Firefox from popping up.

    Tools > Options > content - JavaScript > advanced...

    Disable or replace context Menus = checked

  • Context menu behavior

    Develop with the 4.2 version of the JDE

    I'm confused about how the system behaves with context menus: I have a class form that inherits from the screen, containing an ObjectList for which I have provided a makeContextMenu function.

    I expect makeContextMenu that will be called when the user clicks on the trackball on one of the items of an ObjectList, but it seems to be called when the user presses the menu button.  Confusingly, onMenu dominant in the class of the screen indicates that when the user clicks on the trackball, the instance parameter is INSTANCE_CONTEXT, and when it is INSTANCE_FROM_MENU_KEY on the menu key, so I expected makeContextMenu to be called when the ObjectList has focus.

    Am I missing something, or do I need to substitute the makeMenu of the screen to get the desired behavior (context menu only when the user clicks the track-ball, full menu when you press the menu key)?

    You can control this by substituting makeMenu.  Please see below for more information.

    How to make the distinction between a full menu and a menu of primary action
    Article number: DB-00565

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • [FAD] How to access the attributes of node context menu?

    Hello

    I work with the component Tree ADF:

    < af:tree value = "#{bindings." Var TreeVO.treeModel}"="node">

    < f: facet name = "nodeStamp" >

    < af:outputText value = "#{node." Label"}

    ID = "NodeLabel don't" / >

    < / f: facet >

    < f: facet name = "contextMenu" >

    < af:popup id = "RemoteTreePopup" childCreation = "deferred."

    autoCancel = "disabled" >

    < af:menu text = "menu 1" id = "m1" >

    < af:iterator id = "i2".

    value = "#{bindings." CtxMenVO.collectionModel}.

    var = 'Elément' >

    < af:commandMenuItem text = ' #{element. " Label} / #{node. Label} '...

    What I expect: when I right click on a node (represented by the output text "node label", a context menu appears with 'element-label/clicked-node-label')

    What I see: the output of the node text is ok, but #{node. Label} has no value < af:commandMenuItem

    How can I recover the node.label of commandMenuItem?

    Hello

    setPropertyListener must go inside the popup.

    
        
    

    Also think about using contentDelivery = "lazyUncached" in the context menu

    Kind regards

    Ruben.

  • Context menu disappears

    Hello community,

    We have an application adf with a table with lots of data. To improve the operation of the table, we have implemented a context menu. If I right click on a row in the table, the context menu is displayed and I can choose a menu entry.

    But...

    There is another scenario:

    I right click to get the context menu. Then I see: Oops, it of the wrong line and right-click again on another line. The shortcut menu disappears (which is good) but does not come back again on any other right click. After reloading the page, I can again call the context menu.

    This seems to be a bug for me but there may be something else wrong with my application?

    JDEV Studio Edition Version 11.1.2.4.0

    Browser: Firefox 31.8, IE 9.0.8112

    Can someone give an opinion?

    Here is my code. I removed the headphones of the property. It is not important in this case and makes the code less readable:

    <af:popup childCreation="deferred" autoCancel="disabled" id="p1"
                                                              contentDelivery="lazyUncached">
                                                        <af:menu text="menu 1" id="m2" contentDelivery="lazy">
                                                            <af:commandMenuItem text="Nachricht öffnen" id="cmi3"
                                                                                action="#{monitorClickBean.callMessage}">
                                                            </af:commandMenuItem>
                                                            <af:group id="g2">
                                                                <af:commandMenuItem text="Nachricht herunterladen"
                                                                                    id="cmi2">
                                                                </af:commandMenuItem>
                                                                <af:commandMenuItem text="Suche passenden Eintrag" id="cmi1"
                                                                                    action="#{monitorClickBean.MarkSameMessageFromMETA}"
                                                                                    disabled="#{pageFlowScope.MetaFilterValueChangedBean.someFiltersSet}"
                                                                    <af:setPropertyListener from="#{row2.SidIe}"
                                                                                            to="#{pageFlowScope.paramSID_IE}"
                                                                                            type="action"/>
                                                                </af:commandMenuItem>
                                                            </af:group>
                                                            <af:group id="g4">
                                                                <af:commandMenuItem text="Fehlermeldung anzeigen" id="cmi7"
                                                                                    action="Show_Error" useWindow="true"
                                                                                    windowHeight="340" windowWidth="500"
                                                                                    windowEmbedStyle="inlineDocument"
                                                                                    disabled='#{bindings.Status.inputValue ne "ERROR"}'>
                                                                </af:commandMenuItem>
                                                            </af:group>
                                                        </af:menu>
                                                    </af:popup>
    
    
    
    

    I have simply included the context menu inside the contextmenu of the table facet. Here is the structure:

    popup.PNG

    Message geändert durch user8850362

    Kind regards

    André

    I build a small test case (using 12.1.3 as I do not have a 11.1.2.4 version available) and it works OK. The only change I did was to put the autoCancel = "valid" ifor the popup. This gives you better feedback to the user interface. If you set this value to false, you must click twice to get the context menu on the second row (once to close the old, once to get a new).

    Timo

  • Oracle ADF - Sesitive context context menu.

    Hello
    I have a table in my application.
    The way I created it.
    I drag and dropped on data control .jspx - > ProductVO-> Named criteria-> all searchable attributes
    Then pop open-> Quick Query-> quick query ADF with table.
    When the right click on any record of table, I want to open a context menu with options like
    -Lock product
    -Unlock the product
    -Structured liberation

    Appreciate your help.

    Thank you
    Malenfant.

    Malenfant,

    AF:table has a facet called "contextMenu" - you can put an af:popup with an af:menu inside the facet and the context menu appears when you right click on the row in the table.

    John

  • Choose the program by default, open with context menu right-click on a program does not!

    When I right click on an application such as a text document and try to change its default program (right click, open with, choose the program by default) I get an error says: "this file has no program associated with it for performing this action. Please install a program or, if such is already installed, create an association in the default programs control panel. »
    There is no problem to open the application, but the problem is the button ONLY!
    Fix association .exe, .txt, etc. did nothing!
    You can see my thread on SevenForums here: http://www.sevenforums.com/performance-maintenance/221020-choose-default-program-button-right-click-not-working.html
    and this problem as my problem: http://superuser.com/questions/69193/choose-default-program-does-not-work-is-broken-on-windows

    Thank you!

    Problem solved by a person post in the Forums of Vista, that what he said in this thread (Thread link: http://www.vistax64.com/general-discussion/202928-open-choose-default-program-error-vista-2.html#post939031 ):

    "PROBLEM SOLVED!"
    HOO HOO!

    I want to thank you once again BRINK for ideas on how to solve this problem.
    The next step below, this is how I solved this annoying problem:

    First of all, I came across this article on the Microsoft Web site by changing my google search to solve the problem. I started the google search with the following:

    'open with' lack of context menu

    Who brought results with the first being a microsoft link:

    Command 'Open with' missing from the context Menu

    Now the article didn't tell me exactly how to solve this problem, but it gave me an idea.
    He said look at the following reg key:

    HKEY_CLASSES_ROOT\Unknown\shell\openas\command

    And he said to watch the following default value:

    C:\%windir%\rundll32.exe shell32.dll, OpenAs_RunDLL %1

    After that, I noticed that the value was different, but then I noticed in watching the article says that this applies to Windows 95 and 98.
    I then looked at the same key on my laptop that is running Vista Ultimate 32 bit also and I noticed there are subfolders on my laptop that my office did not have.
    It should look like the following:

    HKEY_CLASSES_ROOT\Unknown
    \DefaultIcon
    \+Shell
    \+openas
    \COMMAND
    \+opendlg
    \COMMAND

    My office was only the DefaultIcon folder.
    Well I just copied the key from my laptop and voila... it worked.
    I thank the gods of the computer. This has really been bugging me. I know that some people would have just reconfigured or installed a new but I knew it was an easy fix. I thought it was a reg key or windows dll file, but I just need to find the location where he resided in. Luckily I came across this article which pointed me in the right direction. Now I feel like I accomplished something.

    Sorry if this is a bit long but I HATE it when I'm looking for answers in the forums and I see someone say they have solved their problem, but they either don't say anything about how they fixed or that they are so vague that they could didn't say anything.
    I hope this helps others if they have this problem.

    Thank you once again on BOARD! "

    That's all!

  • Context menu prevent from appearing when you click on?

    I get the context? menu (the one with the full Menu and options Show/Hide keyboard) when I press (touch screen) or click on a field in a listechamps.  I don't know why.

    I extended ListField as follows:

    public class TableField extends ListField {
        TableFieldCallback callback;
        public void setTableCallback(TableFieldCallback callback) {
            this.callback = callback;
        }
        protected boolean trackwheelClick(int status,int time) {
            App.DEBUG("CLICK START " + time);
            if (null != callback) callback.onclick(this.getSelectedIndex());
            App.DEBUG("CLICK CONSUMED");
            return true;
        }
    }
    

    The domain manager that contains this field implements TableFieldCallback and sets the callback object.

    The scope of the list does not contain child field, rather than the 'data' are set for each field.

    I press list (click on) a field (line) in the field and trackwheeClick() is called calls my onclick() method in my object and is processed (it loads another opinion), but the context menu is displayed, even if I returned true from trackwheelClick() of signs that I have consumed the event.

    This behavior is unacceptable, I need a way to be able to disable the context menu when you click on the field ofc.

    Note: the full menu appears sometimes, but I guess that's because I also accidentally click / tap the full menu option in the context menu that... maybe its because the context menu Gets the event of publication in the press / click don't know.

    Hey to return true on nothandled touch clear also

    and for the contact not returning true not managed navigationClick should do the job.

  • Why doesn't the mouse click on the tab context menu more displays the option to move the tab to a different group.

    When I click right click on a tab, the context menu no longer offer to move this tab to another group.

    What's new since 38.05

    Why was this feature depricated?

    I've got 38.0.5 on Win 7 x 64 Fx.

    You already have a userChrome.css file to change the user interface of Firefox? It is the only other method that comes to mind to hide a menu item. You can find such a file in this way:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Look for a folder named chrome , and if you find it, click on inside.

    Any userChrome.css file here? If so, you can open in a text editor and view its contents to see if it looks familiar.

    Or maybe your program files have been damaged in the upgrade. This happens from time to time, with unpredictable results. To remedy this situation, I would suggest:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (no incompatible or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    You can get reinstalled Firefox?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • Just updated to 38.0.5 and now when I right click on a bookmark to edit, the context menu is grayed out and it won't let me. Why?

    I read a lot of web comics, so I change the bookmarks for them on a daily basis on the last page on each site. I just tried to do that tonight after you install the 36.0.5 update, now when I right click on the bookmark in the menu, I have yet to get the context menu, but all the options are greyed out. He was most certainly not in this way the last night before the update. That is what it is?

    Oops, it's probably the bug to customize. After using customize it, most of the items on the context menu are gray to the bookmarks Menu in the classic menu bar.

    It does not affect the button drop-down bookmarks menu *, and it does not affect the bar Favorites (Ctrl + b). And if you launch a new window (Ctrl + n), he works on the menu bar, too. Very strange.

    I don't know when this is going to get it fixed but at least you know a few places to access the properties for the moment.

    Which doesn't seem to be the problem?

    One on the taskbar near the star

  • Context menu (or click on the right button) does not appear in the menu window

    The context menu does not appear in certain sections of the browser.
    If I run the browser in safe mode, it works without problem.
    I tried to reinstall firefox, after uninstalling I also manually deleted everything hidden and visible files - did not help.
    Also I tried the restore mode by default - did not help.

    Here, I put screenshoot.
    Kind regards.

    Sorry for my eng

    Hello

    Try disabling graphics hardware acceleration. As this feature has been added to Firefox, it has gradually improved, but there are still some problems.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Open the Firefox Options (Preferences on Mac or Linux) as follows:

      • In Firefox 29,0 and above, click on the menu button

        then select Options Preferences on Mac or Linux, or Windows.

      • In 28.0 Firefox and earlier versions, click on the Firefox orange upper-left button, then select the 'Options' button or, if there is no button up Firefox, go to tools > Options.
    2. In the window of Firefox Options (or preferences), click on the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? Please report to us!

    Thank you.

  • Make a right click on the e-mail list no longer opens the context menu.

    Hello world
    Thunderbird collapsed to display the context menu on the mailing list recently. Make a right-click displays just the cross line. What is the problem could be?
    Thanks anyone for any help.

    Win 8.1 64
    Thun 31.3.0

    Very strange.
    Make a right click on the email list should open a menu drop-down.
    Usually a line crossed through something means that it is marked as deleted in an imap e-mail account.

    See if there is a conflict with an add-on.
    Restart Thunderbird in safe mode.
    Help > restart with disabled addons.

    then run the same test; Right click on the email list.
    Do you get the drop down, if so, then one of your addons is the origin of the conflict.
    You'd have to disbale each in turn to find what the problem is.
    Maybe the addon should update.
    Report on the results.

Maybe you are looking for