Is it possible to detect an alt-click or cmd-click on a button of a custom panel?

For the sake of screen real estate I would like to tie two similar commands to a single button that can be alt-clicked or cmd-clicked for a different outcome.
I know the ScriptUI provides some options but I'm looking for a way to handle it in the panel itself without a pop-up.
I would like to know if it is possible to detect a modifier during a click event inside the panel and, if possible, how to handle it.
Thank you for any insight to the situation.
Regards,
Patrick Deen

Thank you for your reply. I am aware of the scriptUI keyboardState.
To detect that event inside the photoshop html panel would require a function call to the jsx before it can be available inside the html panel.
The reason my question is relevant to this forum is that the html panel's run on chromium inside the photoshop environment, which I think might pose some limitations to what can be achieved with javascript on the html/panel side.
I was looking into a way to change the appearance of a button so it would give the user some indication that when "ALT-clicked" another precess would take place.
Regards,
Patrick Deen

Similar Messages

  • How do I click the '1st' button in the character panel for texts?

    I'm having trouble figuring  out how to click the '1st' button in the character panel because i need to write 25th anniversary and needs the 'th' to be lowercase on the side. I'm new so please help! thanks.

    I think the availability of Oridinals depends on the font.
    Quote from the Reference:
    Typefaces include many characters in addition to the ones you see on your keyboard. Depending on the font, these characters can include ligatures, fractions, swashes, ornaments, ordinals, titling and stylistic alternates, superior and inferior characters, old-style figures, and lining figures. A glyph is a specific form of a character. For example, in certain fonts, the capital letter A is available in several forms, such as swash and small cap.
    But one can achieve something similar by changing the font size and baseline shift for the affected characters.

  • How can detect user's click on "Back" button in browser?

    Hi java gurus:
    I use servlet as a controller to show pages. If user click "Back" button several times, and execute an operation in the page, at that time the attributes in the session is for the page before clicking "Back". So the operation run with the wrong data. How can I deal with this condition? Can I detect user's click on "Back"?
    Thanks for any suggestion.
    allan

    Any request made by a client could be "stopped" after
    the session has been updated with the new timestamp.
    This would leave the client sitting viewing a page
    that has an "out of sequence" timestamp in the hidden
    field with no way to get out.Yes, the client could stop the request and have no valid unique String to submit. However, the technique is only designed to detect out of sequence pages, it does not mean the user has no way out! Remember that the server side code can respond to the fact that the request is out of sequence in any way. Certainly, they could choose to lock the user out, but more often than not it will be a more intelligent response than that.
    This problem could also manifest itself if the client
    makes a request of type a then changes their mind and
    makes a request of type b before the type a request
    has been returned.Yes, in this case the request would be considered 'out of sequence'. It's really a variation of the condition you mentioned earlier.
    Any ideas?Again, the code can respond to the fact that the request is out of sequence in several different ways. It may, for example, ignore the fact that it is out of sequence if it finds the data it needs in the session store. It may force the user to start over, or any other action which makes sense -- It's going to be very application dependent.
    Good luck,
    -Derek

  • Is it possible to generate a mouse click at specific coordinates on the stage?

    Let's say x = 100 and y = 100. So, I have my main swf file that contains an external swf file with a button. Would it be possible to generate a mouse click on that button?
    Any help would be greately appreciated.

    You don't do it that way - you'd just tell the button to dispatch a CLICK MouseEvent and anything listening for the click would get it... something like:
    myButton.dispatchEvent(new Event(MouseEvent.CLICK));

  • Deleting progress message when click of a button

    hi,
    similar to the image shown below, can i  use this progress message - liek deleting - inserting- in progress- on top right corner just below mty custom master page.Would like to how to achieve this progress / status message using SP API. if
    i wnat to use this ona  click of a button in my custom visual web part, whats the API to be used. 
    thnx.

    HI,
    You can use "SPLongOperation", please check the below references for more info..
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/b5f8620d-a1dc-4c79-9141-be3e153903ed/progress-bar-in-sharepoint-2010-web-part
    http://howtosharepoint.blogspot.in/2010/04/how-to-programatically-show-processing.html
    or
    use below approach...
    http://blog.mastykarz.nl/sharepoint-2010-ui-tip-non-obtrusive-progress-messages/
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • Alt + click not closing previous window?

    Hi,
    I have just been upgraded to 10.5 at work (hey we're at the cutting edge here you know! ) and I now can't do an alt+click to open a file/folder/app and close the folder it was in?
    It worked in 10.4 and I can do it on my personal mac that runs 10.6 so I'm sure I can do it but don't seem to be able to set it up.
    I've been trying to change my finder preferences switching 'always open folders in a new window' on and off and sometimes it seems to do it then not?
    HELP?

    >Exit plugs do not work in a portal environment.
    This is a good point that I feel silly for not remembering...
    You can check if your application is running in the portal using the IF_WD_APPLICATION->GET_CLIENT_ENVIRONMENT method
      lo_api_componentcontroller = wd_this->wd_get_api( ).
      lo_api_application = lo_api_componentcontroller->get_application( ).
      l_client_environment = lo_ap_application->get_client_environment( ).
    if it is - then you can use the IF_WD_PORTAL_INTEGRATION interface
    lo_portal_integration = lo_api_componentcontroller->get_portal_manager( ).
    and the you can use the IF_WD_PORTAL_INTEGRATION methods to navigate eg - NAVIGATE_ABSOLUTE
    call method lo_portal_manager->navigate_absolute
        exporting
          navigation_target   = 'ROLES://portal_content/blah/test_URL'
          navigation_mode     = if_wd_portal_integration=>co_show_inplace
    If you're navigating in the portal you should probably have iViews set up for the apps you are calling, but it is possible to create a pass-through iView which will redirect to a URL passed as a parameter.
    [Setting the URL at Runtime - in URL iVIew|http://help.sap.com/saphelp_nw04/helpdata/en/45/85087d755d1f88e10000000a1553f6/frameset.htm]
      data lo_api_component  type ref to if_wd_component.
      data lo_portal_manager type ref to if_wd_portal_integration.
      data lt_params type wdy_key_value_list.
      data ls_param type wdy_key_value.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      ls_param-key = 'forcedURL'.
      ls_param-value = 'http://www.google.com'.
      append ls_param to lt_params.
      call method lo_portal_manager->navigate_absolute
        exporting
          navigation_target   = 'ROLES://portal_content/blah/test_URL'
          navigation_mode     = if_wd_portal_integration=>co_show_inplace
          use_sap_launcher    = abap_false
          launcher_parameters = lt_params.
    Hope this helps
    Chris
    Chris

  • Alt-Click on sharpening sliders broken periodically

    In 1.1, when adjusting sharpness settings at 1:1 magnification, if I alt-click any of the four sliders, I sometimes don't see the display at all - the normal image remains, or sometimes see an all white image that does not change regardless of how I adjust the slider. In all cases, the adjustments still work - just that the alt-click display doesn't.
    I haven't been able to narrow this down to a better description, as yet, but can possibly provide some example images that seem to routinely break.

    I've never seen it fail, and I use it a lot. Try really, really hard to narrow down the set of circumstances that make it happen when you see it.

  • Can you help me to retrieve my applications. In iTunes I accidentally clicked the Restore button in the Summary screen. It restored the original settings and I lost all my applications and don't know if it is possible to retrieve them.

    Can you help me to retrieve my applications. In iTunes I accidentally clicked the Restore button in the Summary screen. It restored the original settings and I lost all my applications and don't know if it is possible to retrieve them.

    All apps on an iPhone, iPad, or iPod Touch should be in your iTunes library on your computer.
    You can re-download all 3rd party apps and you won't be charged again for a purchased app as long as you use the same iTunes account to re-download the apps that was used to purchase the app originally.
    http://support.apple.com/kb/HT2519
    Do this with iTunes on your computer. After you have re-downloaded every app one by one, select Sync Apps under the Apps tab for the device's sync preferences along with selecting the apps below that you want transferred to the device followed by a sync to re-install the apps on the device.

  • Incorrect detection of double-clicks in layers and channels windows. (Mac OS X 10.6.8)

    Photoshop will detect a double-click in the layers and channels panels even when there are different modifier keys held down on the first click vs. the second click.
    I have never intended to double-click and accidentally changed the modifiers I was holding down between clicks.  I often perform an action requiring modifier keys and immediately follow it with an action that requires no modifiers (or different modifiers).
    I realize that the conventions for what constitutes a double-click are platform dependent and not particularly well documented, but I do expect Photoshop to work the way that my operating system does (Mac OS X 10.6.8)).  I know older versions of Windows detected double-clicks even when modifiers were changed between clicks, but I believe the latest versions behave similarly to OS X.
    Examples:
    Start by having a document open with multiple alpha channels and layers in it.
    Select an alpha channel by clicking on it's thumbnail in the channels panel.
    Quickly hold down the control key and click again.
    Result: this brings up the "Channel Options" window. (as if you had double-clicked)
    Expected result: should bring up the channel's contextual menu.
    Bonus extra nitpick:  The window opened on mouse-down, not on mouse-up.
    Create a non-blank alpha channel.
    Hold down the command key and click on that alpha channel's thumbnail. (loads the channel into the selection)
    Quickly release the command key and press the mouse button.
    Result: Brings up the "Channel Options" window. (as if you had double-clicked)
    Expected result: Start a drag operation on the channel.
    Click on a layer in the layers panel to select it.
    Move the mouse pointer to a different layer.
    Hold down the shift key and click to select multiple layers.
    Quickly release the shift key and press the mouse button.
    Result: Brings up the "Layer Style" window.  (as if you had double-clicked)
    Expected result: Begin a drag operation.
    Bonus extra nitpick:  The window opened on mouse-down, not on mouse-up.
    Interestingly the layers panel does the correct thing when control is pressed between clicks, but the channels panel does not.
    The options windows opening on mouse-down instead of mouse-up has never bothered me, but I believe it goes against convention.
    Thanks.

    Very detailed report, Jay. I was able to see exactly what you're talking about, and reproduce this using my trackpad. I'm wondering if this is an OS issue, or something that can be tweaked in Photoshop. Even with files in Finder, you can activate a double-click even with a slight hesitation, which is similar to the behavior in Photoshop.

  • Ctrl/Alt click to activate link closes current document

    We just upgraded from Framemaker 7.2 to 12, and there's a behavior I can't figure out. I have a book file with cross-references between FM documents. Before, in FM 7.2, when I used Ctrl/Alt+click to activate a cross-reference link and follow the marker to a different Frame document, it left the original document open, and also opened the document the link caused me to jump to. In FM 12, it is closing the original document every time I click on a link to follow it. Is there a preference setting or another way to stop Frame from closing the first document every time it opens the document the link is referencing?

    Some of these resources might come in handy...They have illustrated workflows and embedded videos. For more assistance: [email protected] and [email protected]
    1. 10-part blog series on reasons to upgrade from FM 7.x to FM 10: http://blogs.adobe.com/techcomm/2012/04/part-5-%C2%BD-reasons-to-upgrade-from-fm-7-x-to-fm -10-summary-thus-far.html
    2. 8-part blog series on reasons to upgrade from FM 7.x to FM 11:
    Part 1 - Part (1) Reasons to upgrade from FM 7.x to FM 11: Catalogs, UI, rich media and more « TechComm Central by Adobe
    Part 2 - Part (2) Reasons to upgrade from FM 7.x to FM 11: Workspaces and a Friendlier UI « TechComm Central by Adobe
    Part 3 - Part (3) Reasons to upgrade from FM 7.x to FM 11: Track changes and Import PDF comments « TechComm Central by Adobe
    Part 4 - Part (4) Reasons to upgrade from FM 7.x to FM 11: Catalogs and Format Overrides « TechComm Central by Adobe
    Part 5 - Part (5) Reasons to upgrade from FM 7.x to FM 11: Where were you in 2002? « TechComm Central by Adobe
    Part 6 - Part (6) Reasons to upgrade from FM 7.x to FM 11: Book Building « TechComm Central by Adobe
    Part 7 - Part (7) Reasons to upgrade from FM 7.x to FM 11: XML and Structured Editing « TechComm Central by Adobe
    Part 8 - Part (8) Reasons to upgrade from FM 7.x to FM 11: “Real” support for DITA « TechComm Central by Adobe
    3. 8-part blog series on reasons to upgrade from FM 7.x to FM 12.
    Upgrade to FM12 INTRO: Overview of many reasons
    http://blogs.adobe.com/techcomm/2014/06/why-upgrade-from-fm7-8-or-9-intro-overview-of-many -reasons.html
    Upgrade to FM12 Reason #1) Fewer steps, more automation
    http://blogs.adobe.com/techcomm/2014/06/why-upgrade-from-fm7-1-new-workflow-ui-powertools- more.html
    Upgrade to FM12 Reason #2) Greater customization, customized workflows
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-2-workspaces-productivity-too ls.html
    Upgrade to FM12 Reason #3) Collaborative and Mobile Review
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-8-or-9-3-review-cycle-with-mo bile-dropbox-and-cms.html
    Upgrade to FM12 Reason #4) Fuller Format and structure control
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-8-or-9-4.html
    Upgrade to FM12 Reason #5) Tools for handling large projects
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-8-or-9-5-book-building-and-ex ternal-references.html
    Upgrade to FM12 Reason #6) Full DITA Compliance, Accessible Structured Editing
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-8-or-9-6-xml-and-structured-e diting.html
    Upgrade to FM12 Reason #7) Direct XML editing and low-cost FM XML Author
    http://blogs.adobe.com/techcomm/2014/07/why-upgrade-from-fm7-8-or-9-7-real-ditaxml-authori ng-with-a-junior-version.html
    Thanks,
    Saibal

  • IOS (iPad App)...possible to detect mute switch? volume off?

    Is it possible to detect if the user has turned mute switch on?  Is it possible to detect the system volume to determine if it is all the way down?
    We would like to display a dialog box telling the user they need to turn up the volume on iPad or turn off the mute switch.
    Thanks,
    MAT

    engineer003 wrote:
    Maybe jailbreak would allow a system level patch to disable the switch like I suggested.
    That's a topic that cannot be discussed on these forums
    engineer003 wrote:
    The so called Apple factory refurbished units I assume to mean they do repair returned units at some point and resell them?  Otherwise why call them refurbished - they are just brand new?
    Apple does not repair them.  The manufacturer, Foxconn, does so back at their facilities in China.  Apple just ships them back, and receives factory refurbished service units from them.  That is why they are called refurbished and not repaired - they are fully refurbished by the actual manufacturer.  They all get new screens and new battery, regardless of age or condition, any other faults are repaired and they are fully tested and come with a minimum of a 90 day warranty.

  • Open a dialog/panel on Option/alt + click

    I've created an indesign panel using Adobe Configurator. The panel includes a few javascripts I've written to automate a few tasks in indesign. On some of the buttons I would like to include a funcitionality where in a dialog pops up when the used alt/option clicks on them. I plan to use that as a settings/preferences dialog for that script.
    Similar alt-click behavior can be seen in the text wrap icons included in the dock at the top in indesign. When you alt-click on them it opens up the text wrap panel.
    How would i go about this? Can anyone point me to some resources where i can investigate further.
    Thanks

    You could try the Configurator forum.
    If I misunderstood you and your talking about clicking on a SUI button with the alt key down then I think that's quite easy
    Trevor

  • Is it possible to Disable Right Mouse click In WebDynpro Java Application??

    Dear Experts,
    Is it possible to Disable Right Mouse click In WebDynpro Java Application??
    If yes then kindly suggest how.
    Warm Regards,
    Upendra Agrawal

    What is the use-case?
    Armin

  • Is it possible to have a right-click application?

    Is it possible to have a right-click application for the iPad? 

    And this is for an iPad?  Somewhere there's some serious miscommunication if anyone thinks that you can left or right click on an iPad.  There's no mouse support, it's driven by taps with your finger.  If you are developing an app, you need to talk to someone on the developer forums about differentiating between a tap and a tap-and-hold to approximate left/right click behavior.

  • Alt-click no longer saves target as

    I just upgraded to Firefox 13.0 on Windows and noticed that alt-click no longer triggers the "Save target as" function. Does this now need to be configured by the user?

    hello, we're mostly users and volunteers here on the sumo forums and are not responsible for those those changes and cannot implement your suggestions - if you want to give feedback to the firefox developers please use https://input.mozilla.org/feedback
    thank you!

Maybe you are looking for