Menubar shortcut not functional if focus is on string control

Dear All,
I am wondering if this is the expected behavior or if I am doing something wrong:
On a panel I have a string control; on double clicking I open a file select box to select a file, the file name then is displayed on this string control. After this action, this string control is the active control, indicated by the grey frame.
I also have a menu bar with some shortcut keys defined, such as F2. It appears that F2 is not functional as long as the  focus is on the string control. This is inconvenient because a typical user action is selecting a file and then pressing Fx. To solve this problem the user needs to click somewhere on the panel to move the focus to another control. Of course this could be done programmatically, but this extra effort is not necessary say for ring controls or numeric controls. Also in numeric controls I can change the numbers, but even if a numeric control is the acitve control because of editing the value F2 immediately works.
Help is appreciated.
Thanks,
Wolfgang
Solved!
Go to Solution.

I just tried in a project of mine and had no problems in calling a menu function with its shortcut key while the focus is on a string control with a callback attached: maybe the problem lies in the string control callback, which is possibly trapping the keypress event before it is sent to the panel.
I tested both with "regular" shortcut keys (such as Ctrl + P) and with F2 only as the shortcat. My callback is not trapping EVENT_KEYPRESS event.
EDIT: I tried by swallowing keyboard presses with     if (event == EVENT_KEYPRESS) return 1;  but I am still able to operate on menus with shortcut keys. Seems the reason lies elsewhere: you can try progressively excluding parts of control callback and see when menus return responsive.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Keyboard shortcuts not functioning

    My ipad air  operating on iOS 8.02 after installation keyboard shortcuts stopped functioning. Please tel me how to rectify this issue

    Many others have the same problem. They say misery loves company. Does this help?
    Re: Keyboard Shortcuts iOS 8
    Re: Keyboard Shortcut stopped working?
    Re: Keyboard shortcut problems in iPhone 5S with iOS 8 update
    Re: Keyboard Shortcuts still not working...

  • Standard Macbook Keyboard Shortcuts Not Functioning

    I have a Macbook running 10.5.7.
    For some time, I have been unable to use any standard keyboard shortcuts such as CMD-N to open a new finder window etc.
    I have re-installed the MAC OS X software from clean, reset the defaults for keyboard shortcuts in System Preferences but nothing works. I don't believe it's the keyboard as I have tried holding the option key while booting and do get the screen offering which drive to boot from.
    Every now and then, following a "Restore Defaults" in keyboard shortcuts, they will function but following a re-start, they are no-go again.
    This applies to all shortcuts such as CMD-SHIFT-4 to grab a screen shot. Simply no keyboard shortcuts work at all.
    Any ideas?
    Thanks
    Darryn

    I don't have an answer, but I just experienced the same problem. Suddenly my copy/paste shortcut doesn't work. I hope someone provides an answer soon!

  • Safari Shortcuts not functioning as promised....

    Hello everyone,
    I was intrigued by something that I read in Adam Goldstein's book "Applescript: The Missing Manual" (P. 182):
    "SAVED SCRIPTS IN THE FAVORITES BAR: If you've saved a script as an Application (pg. 33), you can run it from Safari's Favorites bar with ease. Here's how:
    1. Find the path to the application.
    If you saved a script called Hyena as an application in your Library-->Scripts folder, for example, the path would be /Library/Scripts/Hyena.app.
    2. Type the path to the file into Safari's address bar.
    To set Safari to open a file for you, use file:/// (yes, that's three foward slashes, not the two you normally see after http:), followed by the path to where the file loves on your Mac. For example, the file path for the Hyena.app script woul look like his:
    file:///Library/Scripts/Hyena.app
    At this point, you could press Return to open the file (and, as a result, run the script). Or you could wait a few steps, to make the script a permanent fixture of Safari's Booksmarks bar.
    3. Drag the mini-icon from Safri's Address bar into the Bookmarks bar (Figure 9-5 top).
    This is a quick way to create a new bookmark.
    4. Enter a name for your bookmark (Figure 9-5, middle).
    This is the name that will appear in your Bookmarks bar, so try not to make it too long.
    Now, whenever you want to run your script from Safari, simply click the script's name in the Bookmarks bar (Figure 9-5, bottom)...."
    The caveat for me is that I've tried it and only the enclosing folder to the targeted application opens!! (This must be either a bug in my Safari version or else Adam's info is incorrect, I'd appreciate it if anyone could verify this, by the way).Please also see my post in the Applescript Forum "Safari Master Control of Numerous Applescripts...."
    "Thanks in advance" for any future assistance and suggestions.
    Sincerely,
    ByTheLightOfQuiveringAspensMade
      Mac OS X (10.2.x)  

    Have yu tried the sandard fixes:
    - Reset. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -Restore from backup
    - Restore to factory defaults/new iPod.

  • Problem with Desktop Shortcut not functioning properly......(FIXED)

    Hello,
    I don't know if anyone else is having this problem but I did and this is how i fixed it. Just FYI!!
    The problem was, when i installed itunes 8.0 for Vista 32..... It seem to install fine, but the problem came about when i clicked the desktop shortcut that itunes installs. Every time i clicked it, itunes wanted to reinstall itself. All I did to fix it was, i went to *Computer > Local Disk (C:) > Program Files > iTunes* and found the iTunes.exe file; right clicked it; selected *Send To* and then *Desktop (create shortcut)*. It fixed the problem and now works perfect.
    I hope this helps someone. If i posted this in the wrong spot i apologize. I'm a forum newb!

    There is an item or two that are in the area of the navbar that may be interfering with it. Select all of the items in the area of the navbar, to just above the first text box and remove the drop shadow. See if that won't get it working again. What font did you use? If you use one of the Web Safe Fonts you won't need to go the drop shadow route.
    Happy New Year

  • Shortcuts Not Functioning

    Hi,
    All the keyboard shortcuts have stopped working in Illustrator CS. I have tried deleting the Library file on my MAC and re-installing but it didn't work.
    Any help would be greatly apperciate it, I've got a logo to design!

    That's a good routine. The Quicken scheduler is used by some people to retrieve info about credit card purchases and banking. It can be any software that holds an open port on the internet and makes timed calls to that port. The OS blocks the modifier keys to prevent malware from trying to run bad processes on your machine.

  • Officejet pro 8500A wireless radio is not functioning

    Have an OfficeJet Pro 8500A.  Wireless connection stopped working.  Tried restarting printer, router, and computer per troubleshooting suggestions in manual.  No joy.  Wireless Network Test Report gives a 'Wireless Working' status of 'FAIL'. Troubleshooting results at top of report says "The wireless radio is not functioning. Contact HP Support." 
    I found a solution to this problem in the forum for a C7280.  It is to reset the printer by turning it off, and holding the # and 6 keys while and a bit after turning it on.  Later on, there is a comment by another user saying the reset solution also works for the Officejet 8500. 
    O.K. so I'd like to try reseting my printer, but don't know how to do it.  There are no "keys" on this model.  I've searched through the user guide (searched on the term 'reset' in the PDF version) with no results.  Can anyone help by either telling me how to use the reset feature on the OfficeJet Pro 8500A, or another solution to the wireless radio not functioning problem that I can try?
    Thanks,

    Thank you for your suggestions.  I appreciate your help.
    I had previously verified that the wireless radio was on.  The wireless radio test report confirmed it was on.
    I had not used the network settings reset function as I was focused on looking for a "printer reset" capability.  Based on your suggestion I used the network settings reset and then printed the HP Network Configuration Page.  This confirmed the settings had been reset.  However this test also checks for all available 802.11 networks.  The report shows the number of networks discovered as 0.  Based on this, I'm assuming the wireless is still not working.

  • Wireless radio is not functioning on C7250. Reboot didn't fix. #6 didn't fix, wireless light is on

    Wireless radio is not functioning on C7250.  Reboot didn't fix. #6 didn't fix, wireless light is on, Vista 32 bit, Win 7 32 bit, D-Link DIR-625 router. Worked great for 2 years. Diagnostic says Contact HP support.  Other functions work fine. Prints via USB all right.

    Thank you for your suggestions.  I appreciate your help.
    I had previously verified that the wireless radio was on.  The wireless radio test report confirmed it was on.
    I had not used the network settings reset function as I was focused on looking for a "printer reset" capability.  Based on your suggestion I used the network settings reset and then printed the HP Network Configuration Page.  This confirmed the settings had been reset.  However this test also checks for all available 802.11 networks.  The report shows the number of networks discovered as 0.  Based on this, I'm assuming the wireless is still not working.

  • Direct Show causing "A device attached to the system is not functioning"

    Hello, 
    I've been using direct show for about a year to connect to four webcams. I have an intermittent problem where by one of the cameras (at random) will not display the live feed. This could not happen for several weeks possibly months and then suddenly the
    camera dies. 
    I run the following bit of code and receive error code -2147024865.
                 IMediaControl mediaCtrl = (FilterGraph)m_filterGraph as IMediaControl;
                   hr = mediaCtrl.Run();
               DsError.ThrowExceptionForHR(hr);
    In Hex this equates to 8007001F. From doing a bit of googling I found that this means a "A device attached to the system is not functioning".
    No other application uses these webcams and nothing has changed to them physically. Direct Show, seems to make this camera unusable at random times.
    Has anybody else experienced this problem and over came it?
    Thank you in advance,
    Mike

    Hi Roman, 
    Thank you for your reply. I'm using a Logitech webcam and this camera is used by the Logitech controller software. This allows us to control the zoom, pan, focus and camera settings whilst connected to the camera in C# application. When this problem occurs,
    the webcam device still shows up in device manager and the settings of the webcam state that the device is working properly.
    I thought it may of been introduced by a possible memory leak that causes the camera to not respond, or that when the application closes it would leave the camera in a unusable state. 
    I've contacted Logitech to ask about drivers for the webcam and they state that it uses windows plug and play drivers. These are currently up to date.
    The reason I thought that it may of been introduced by direct show is because these cameras have been used before on other products but using different software, Steribar (a software tool to use the view of a webcam as a cheap barcode reader), and haven't
    experienced this problem with the cameras with this software. However very intermittently the custom C# app that I have created causes this problem. 
    Thank you for you time.
    Mike

  • Fn + delete, other shortcuts not working with new Santa Rosa Macbooks?

    I recently received a brand new Macbook (Santa Rosa platform) as a replacement for my defunct old Macbook (which was the previous generation). I've noticed in bootcamp, Fn+Delete no longer serves as a shortcut for the Del key in windows. Nor does Fn+Up or Fn+Down serve as PgUp, PgDn respectively. Is this intentional, or something that I can get a fix for?

    I don't know if my solution will help everyone else, but I am using BootCamp 1.4b and recently reformatted my Windows drive. I had the Mac drivers for this backed up on my Windows PC and I used my PC to burn them to disk. After troubleshooting the problem described above for many hours (or at least one with the same symptoms), I found that the keyboard driver on my cd was corrupt (stupid CD-RWs never work right.) Since I had my ethernet up and running at that point, I was able to use the Windows on my Mac to pull the drivers off my network share and then I deleted the Human Interface Devices as described above and then reran the Mac driver setup program. After I restarted, everything worked fine.
    WARNING: Make sure you can do everything you need to do using only the mouse since the keyboard will not function at all after deleting the devices.

  • Spry Menu Issues - Not functioning correctly in Microsoft IE

    Hi there,
    I am fairly new to web design and dreamweaver.
    I have constructed a simple page that I am happy with complete with Spry Menu which again I am happy with.  However this spry menu works perfectly in firefox but for some reason on IE my spry menu does not function correctly and goes all over my page!
    CORRECT VERTICAL MENU - FIREFOX -
    INCORRECT MENU FUNCTION! - IE -
    See my CSS Code below for the spry menu in questions - if this helps -
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: inherit;
        font-size: 100%;
        cursor: default;
        width: 1000px;
        height: 47px;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: medium;
        position: relative;
        text-align: center;
        cursor: pointer;
        width: 318px;
        float: left;
        height: auto;
        background-color: #000000;
        border: 2px solid #FFF;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: auto;
        cursor: default;
        width: auto;
        position: absolute;
        left: -1000em;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 318px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin-top: -5%;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0px;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 1px solid #FFFFFF;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        background-color: #bcbdb9;
        padding: 0.5em 0.75em;
        color: #FFF;
        text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-color: #000;
        color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #000;
        color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarDown.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarDownHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
        display: inherit;
        f\loat: left;
        background: #FFF;
    ** I am also using Windows 8 and Dreamweaver CS6 If this helps.**
    Any help with this would be fantastic as I need this to be resolved before the end of the week. 
    Any further information required please message me to find out.
    Thanks,
    Jamie

    THE CONFLICT IS BETWEEN YOUR DOCUMENT CSS AND THE SPRY CSS.
    It is because the <li> and <a> TAGS have been styled and therefore OVERRIDDEN THE SPRY CSS.
    Use CLASS TAGS e.g.  <li class="anyclass"> and <a class="anyclass">
    and STOP USING THE <a> TAGS.
    N.b. you may need to unstyle any <a> or other TAGS that conflict with the SPRY CSS.  (However it's best to start over knowing that styling basic tags may affect the SPRY CSS).

  • Edit in Photoshop Elements 8 will not function.

    Edit function on Photoshop Elements 8 will not work.  Gives a crash message says to uninstall "inspirational" then download update.  done and still Edit does not function. ??????

    If PSE8 uses an Unwelcome Screen, bypass the Unwelcome Screen by creating Desktop shortcuts for the Organizer and the Editor, and restarting your computer.
    The Editor's executable is:
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    The Organizer's executable is:
    "C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe"
    The Unwelcome Screen leaves a zombie process running which prevents the actual program from launching again.
    Ken

  • My ipad camera is not functioning very well

    I can't take pictures!

    Hey ozzmat,
    Though the following comes from an iPhone article, the troubleshooting steps would still be valid:
    Camera is not functioning
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tapping Settings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Third-party cases can interfere with the autofocus/exposure feature and the flash (iPhone 4 only); try removing the case if you have image-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center. Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. After recording begins, you cannot readjust focus until you stop recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll. Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    via:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    If none of that seems to resolve the issue, I'd check out the iPad troubleshooting assistant and do steps 4 and 5:
    iPad Troubleshooting Assistant
    http://www.apple.com/support/ipad/assistant/ipad/
    All the best,
    David

  • 10.0.2 upgrade today. Now it is not functioning as before. I click in menus or links to next step and no response

    10.0.2 upgrade today. Now it is not functioning as before. I click in menus or links to next step and no response
    I have restarted computer and still no change

    '''Try the Firefox SafeMode''' to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Menubars do not respond

    I switched to Leopard on all my Macs — a MacBook Pro, a 24" iMac — and ever since have been facing unpredictable freezes on the menu bar. The freeze affects whichever application I'm currently working on, and is characterized by complete unresponsiveness on the menu bar. I can click where I like on the menu and nothing happens.
    While the menu is frozen, I can still activate command through keyboard shortcuts.
    The way to unfreeze the menu, I've discovered, is to temporarily switch to any other app, and then come back. The menu is alive again.
    Can anyone tell me what's going on — and how I can fix it?
    Gopinath

    I'm having this same issue on my Macbook. On startup or restart the menubar does not load. I see the icons where the menubar should be, but the translucent menubar does not appear, and the icons are not responsive. I can get the menubar to come up, and activate the icons using the same unfreeze process described in your post. No answers, unfortunately.

Maybe you are looking for