Trapping function keys

Forget my quastion on function key presses- I just looked in the manual and
found what I needed (The Window.FunctionKeyPress event).
I'll check BEFORE posting next time!
DaVE
Triad Group PLC, EMail:[email protected]
GU7 1XE, England. Tel: 01483 860222

Hi Manuel and Martin,
Unfortunately, for Forte V2.0, Manuel is correct. But Forte has
added a feature that allows you to trap any keystroke in Forte R3,
which is currently in beta.
If you are a beta site, look in the Forte Release 3 Beta Features
manual page 169, the window class SetAsFunctionKey method.
If you are not a beta site and want this functionality in R2,
you would need to do some tricks with menus or data fields, as
Manuel indicated.
Cheers,
Kerry
Hi all,
Actually, I don't think you can trap keystrokes on a UserWindow but on
some WidGets (like DataFields), you can set to TRUE the 'Validate on
KeyStroke' option in the properties dialog .
Thus, when the WidGet has the focus and the user send a keystroke, you
can trap this event with the 'AfterValueChange' event.
If someone knows how to trap keystrokes on a UserWindow, I am also
interested !
Thanks.
- Manuel -
Manuel Deveaux
Forté Developer
Mutuelle Préviade
Nancy, FRANCE
E-Mail : [email protected]
De : [email protected][SMTP:[email protected]]
Date : vendredi 4 avril 1997 09:57
A : [email protected]
Objet : Trapping Certain Keystrokes
Hi All,
I have read the manuals, and the online-documentation, but can not seem
to find anything about trapping keystrokes other than the Function keys.
Our application specifically requires us to trap certain keystrokes,
such as the navigation keys etc.
Does anybody know which event is raised when a key is pressed?
Any insight will be appreciated.
Regards Martin
| | / \ Kerry Bellerose [email protected]
| || C | Senior Consultant direct: 45 45 94 01 03
| | \___/ Lindhard Forte´ Solutions desk: 45 45 82 21 21
| |_____ Datavej 52 fax: 45 45 82 21 22
| | 3460 Birkeroed, Denmark
|_________| http://www.lindhard.com/forte/index.html

Similar Messages

  • Function keys in OS 10.4.7 running on G4 desktop.

    How can I reclaim my function keys from Apple's arrogant engineers? I know what is best for me; they do not. When I uncheck the Fkey assignments in the preferences/keyboard/shortcuts, it just pushes the Apple-designated functions onto the shifted Fkeys, specifically F10 through F12. I want ALL my fkeys back, including all modifier key combinations with my Fkeys. Besides these specific keys there may be other as-yet undiscovered booby traps waiting for me. I have abandoned hope of getting any output from Fkeys 13-15 since no matter what I map to them gets eaten by the void.
    It's actually more annoying than I described. Every time I restart (much more frequently in OSX than in OS9) the system steals a couple of unmodified Fkeys back and I have to go back to preferences and uncheck the 'Apple knows best' intrusions into my space. This closed system behavior is intolerable and I will inevitably quit MAC over it. Is there no cure that will restore control of all my Fkeys to me once and for all?
    Thanks in advance for any help.
    G4 desktop   Mac OS X (10.4.7)  

    You need an universial version of Mac OS X Server. You got the Intel one.

  • Function key in ALV output

    hi all,
    i have to make a function key(Re-process) in ALV  grid output and if user selects any ALV row and click on that function key then it will reprocess the selected data. so can any one please tell how would i make Function key in ALV output and also how to trap the selected row data of ALV?
    regards.

    For this you will have to write the a Call back routine you will have to add a custom button in allv
    and when your added button is pressed then this routine will be triggred you will have to write  a operation for the function code inteh call back routine
    you Get the CALL BACK ROUTING NAME PARAMETER in the REUSE_ALV_GRID_DISPLAY
    in this routine you will ge the current selected row also.
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
        i_callback_program             = sy-cprog
        i_callback_html_top_of_page = 'TOP_OF_PAGE'
    *    i_callback_top_of_page         = 'TOP_OF_PAGE'
    *   I_CALLBACK_PF_STATUS_SET       = ' '
        i_callback_user_command        = 'USER_COMMAND'
    *    I_GRID_TITLE                   = 'VIRAJ PROFILES LTD.'
    *   I_STRUCTURE_NAME               =
          is_layout                      = layout
          it_fieldcat                    = fieldcat
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
         it_sort                        = i_sort
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    *   IR_SALV_LIST_ADAPTER           =
    *   IT_EXCEPT_QINFO                =
    *   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
        tables
          t_outtab                       = <table>
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    form user_command using r_ucomm like sy-ucomm
                     rs_selfield type slis_selfield.
      case r_ucomm.
        when '&IC1'.
          loop at it_ekko into wa_it_ekko.
            if rs_selfield-fieldname cs wa_it_ekko-ebeln.
              set parameter id  'ANF' field wa_it_ekko-ebeln.
              call transaction 'ME47' and skip first screen.
            endif.
          endloop.
        when '%_GC 117 3'.
          data : msg type string.
          concatenate 'Click' 'on' rs_selfield-fieldname into msg separated by space.
          message msg type 'I'.
        when others.
      endcase.
    endform.                    "USER_COMMAND
    Above is sample code ...just debug it you will get it all
    Edited by: Anup Deshmukh on Feb 2, 2010 4:43 AM

  • How to replace F4 using another function key

    Experts:
       How can i change the search help function key F4, using another function key,for example F11, when i press F11 the system perform the search help.
    thanks!

    you can do this using menus/buttons(dialog programming) and there you can define your short keys, and event can be trapped by sy-ucomm in the program. Menu can be set by writting set PF-Status 'MENUNAME' or using se37.

  • Function keys no longer working with a new keyboard...

    I got a new keyboard and my function keys no longer work with it.  I am used to have them used in the standard format, i.e. F10-F12 control the voume, etc.  I have the "Use all f1,f2, etc." button clicked.  I have also tried restarting my computer.  Any thoughts?

    Try doing a SMC reset and PRAM reset.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • I have a Macbook Air that had some coffee spilled on the keyboard and as a result the plus/equals key is no longer functioning. Can I use a program like Ukelele to reprogram a different key to be my plus/equals key? Can I program a function key? key

    I have a Macbook Air that had some coffee spilled on the keyboard and as a result the plus/equals key is no longer functioning. Can I use a program like Ukelele to re-program another key to do that function? Can I re-program a function key to do this function?

    Water + electronics do not mix.  Something was damaged insode, and the logic board may be corroding as is.
    Take it to a Genius Bar for an evaluation and repair estimate.
    This is accidental damage and not covered by warranty.

  • [SOLVED] Function Keys Problem On Dell Inspiron N5010

    Yesterday I bought a new laptop (Dell Inspiron N5010) and immediately installed Arch Linux on it. But when I launched the installation framework, I needed to use fdisk to partition my drive manually and to open another tty, ctrl + alt + f2 or up to f7, none of them worked. When I use f4 or f5 for example, it changes the brightness of the screen cause these keys have icons on them which represent the brightness control. So I quitted, took care of that fdisk issue and got back, installed Arch Linux successfully. When launched in GNOME 3, nothing was changed. It still uses f1, f2, ... and so on as "just function keys" without using "Fn" key. It's fine somehow cause my system automatically detected those keys, I can use every single function of my keyboard. But without using Fn key, I can't actually use any fx key for my own use. For example, I can't use Tilda anymore cause when I use only f1, it tries to open monitor control stuff.
    So... any ideas?
    Edit: It seems that this problem is all about Arch Linux. A friend of mine has the same laptop and he has just tried Mint Debian RC and function keys worked properly. So, there's a problem and it seems it's related to Arch Linux (or maybe Xorg version, somehow?).
    Last edited by Jeaquares (2011-05-18 13:07:06)

    xdunlapx wrote:The function key on my dell laptop was set to the F keys, meaning you have to hit the function key and then an F key to activate the F key. I switched it in the bios so I don't have to hit the function key to activate the F keys. So I would have had to hit Fn+Ctrl-Alt-F1 for example to get to TTY 1. Now since i switched it off in the bios All I have to do is hit Ctrl-Alt-F1 to get to the terminal. But in order to turn off wifi from the F key (for example) I have to hit Fn+F2. It's switched.
    I can't tell you how this was helpful. I've never noticed that there was an option in BIOS's Advanced menu for this. I updated it as "Function Key" and it solved my problem, thanks.

  • X1 Carbon 2014 Function keys not working in windows7

    Hello.
    I have a brand new X1 carbon(model: 20A7-005KMD) that was installed with our company image, running windows 7.
    Alle drivers in device manager has been installed, and system update is updated.
    The carbon has the "touch" function keys and they only partly work.
     When booting the computer i can swap between the different functions, but when i get into windows, its is "stuck" with only the options F1-F12. The F keys work, but i cant change settings by pressing the FN key on the left side og the touch display, and get sounds/brightness settings etc.
    as said, this works just fine during the boot.
    Any ideas what can be causing this and even more important - a fix?

    Hi Guys,
    We are currently having the same issue on the X1 Carbon 20A7 models (20A7000LAU). In BIOS or during boot the function changing works without issue (limited to two (2) function screens how-ever), it stops working once you log in. If you then lock the computer you can change the functions, but then once you unlock the device, it stops working.
    When the drivers are installed and the device is restart we get the above behaviour, if we uninstall the drivers the function keys will function as expected till the device is restarted. This is very strange behaviour.
    On a device received by Lenovo there are 4 function changes/screens in total, we can only make two work temporarily as listed above. We have tried the following.
    1. MDT 2013 Delivered Windows 8.1 x64 image image. All drivers/software components installed from the lenovo website. We receive above issue and cannot resolve by uninstall/reinstalling.
    2. Vanilla Windows 8.1 ENT x64 image installed from Microsoft Volume Licensing portal, installed all drivers supplied from the Lenovo Website. The same behaviour is seen as above and is reproducable.
    3. We have als compared all drivers/software installed on the factory supplied model to a manually built device, still the above behaviour is witnessed.
    4. We have manually exported drivers from the X1 Carbon device from lenovo and injected them into the vanilla Windows 8.1 ENT or PRO newly imaged device, still the same behaviour above.
    Please let me know what I'm missing, I'm certain this is a bug in the drivers for this model.
    Regards,
    Nic

  • Is it possible to display the standard function keys in screen painter

    Hi ,
    I design a screen in se51 where I use push buttons and input/output buttons and so on in the layout, here in the layout or in my final output screen(when i assign this screen to a transaction) I would like to display other standard keys, ie the function keys and application toolbar items. I would like to know whether there is a possibility to do this , if yes then how?
    In a menu painter there is a possibility where I can customize the keys or I can use the standard keys by going to se41 extras->adjust template. Is there similar possibilities in the screen painter.

    Ok I see. I should use &var.
    Edited by: xerosaburu on Aug 18, 2009 11:37 AM

  • "Undefined Function Key. Press Ctrl+F1..." Porting app from 6i to 10G

    I am running into a problem porting my application from Oracle Forms 6i to 10G. When I am querying a record based on a field that is not the first on the screen, I get an "Undefined Function Key. Press Ctrl+F1 for list of valid keys." error. I do not get the error using the same function keys from the first field on the screen. I also do not get the error if I click into another field (besides the one I an querying) before hitting my execute query key.
    I did some research, and found a fix that seems to work. I can add a WHEN_MOUSE_CLICKED trigger to the form and put in the following:
    Go_Item(:System.Mouse_Item);
    That seems to fix the issue. My problem is that I have close to 400 forms to upgrade. I would like to avoid adding this manually to every single form. I have looked into libraries, but I can't seem to figure out how to replicate a WHEN_MOUSE_CLICKED trigger using procedures. I was wondering if there was a way to use the Forms upgrade utility to add this trigger to every form it converts. Does anyone know if that can be done?
    Thanks in advance for your help with this.

    I'm not sure this solves the problem. This would call the trigger, but the trigger does not currently exist. I would still have to manually create the trigger in all 400 (or so) forms. Is there a way to add it in a more global way?
    Thanks.

  • Function Key not work when using jre1.5

    My application was based on JDK1.3 to develop and JRE 1.3 is using in the client side.
    In the application, function keys are the shortcut and it is working fine based on the above setting.
    Since JRE 1.5 is encouraged to be used in the future, we try to use it to run our application. But we find that all function keys are not working.
    I am not sure the fact, but I get the following exception sometimes in the console:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(LayoutComparator.java:61)
    at java.util.Arrays.mergeSort(Arrays.java:1307)
    at java.util.Arrays.mergeSort(Arrays.java:1296)
    at java.util.Arrays.mergeSort(Arrays.java:1296)
    at java.util.Arrays.mergeSort(Arrays.java:1295)
    at java.util.Arrays.sort(Arrays.java:1223)
    at java.util.Collections.sort(Collections.java:159)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Sorting
    FocusTraversalPolicy.java:119)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocu
    sTraversalPolicy.java:425)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusT
    raversalPolicy.java:148)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFo
    cusTraversalPolicy.java:502)
    at javax.swing.LegacyGlueFocusTraversalPolicy.getDefaultComponent(Legacy
    GlueFocusTraversalPolicy.java:131)
    at java.awt.FocusTraversalPolicy.getInitialComponent(FocusTraversalPolic
    y.java:149)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
    usManager.java:318)
    at java.awt.Component.dispatchEventImpl(Component.java:3841)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Window.dispatchEventImpl(Window.java:1766)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I try to compile my code using JDK 1.3 and 1.5. Actually, there is no compilation error.
    Please help me if you know the fact or solution.
    Thanks a lot!

    The supported Software in iPlanet's Portal Server is JDK/JRE 1.2.2_07 and JDK 1.2.2_09(in SP4). Starting with JDK1.3.1_01, applets are handled somewhat differently. Enable Java and look at the error messages in Java Console to find why the Netlet is not loading in JDK1.3.1_02. The issue might be with two JRE's or with your cache setting. Hope this helps you.
    Thanks,
    Raj_indts
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Function keys not working in XP under Boot Camp

    I have a slight problem with Boot Camp with XP.
    When I first installed it long ago, I recall there was a Boot Camp icon in the Windows tool bar, and the function keys could be used to change the volume, brightness, and keyboard backlight. Now, there isn't, and they don't.
    I've run 'repair' from the Leopard DVD, but still the functionality hasn't returned. This is particularly irritating within a game because I can't even change the volume without quitting to desktop.
    Note that the Boot Camp partition is also used by Parallels, just in case that's a factor. Other than that, I can't think what it was I might have done to have caused whatever Boot Camp installed to facilitate this functionality, be removed/disabled.
    Any ideas how I can repair it without starting again from scratch?

    I'm having similar issues with no real luck. The only 'solution' I've found is to manually start the KbdMgr.exe program each and everytime I turn on Windows. The program is in the Bootcamp folder, and I put a shortcut on my desktop.
    KbdMgr is set to start with Windows, but it doesn't. I've even done a repair install of Windows, removed and reinstalled Bootcamp drivers with no success. I can't find an actual solution anywhere, just workarounds.

  • Wireless keyboard function keys don't work even though updated

    Hi,
    like i read in different threads, many others had this problem too.
    The function keys of my bluetooth keyboard (aluminium 2009) don't work even though i did firmware update for mighty mouse AND the keyboard firmware update. I also unset the option 'use function keys with fn......' option in system preferences. I also tried disconnecting and connecting the device. In system profiler the entry says it is (still) firmware version 80.
    What can i do?
    I'm thankful for any hint.
    Best, Jörg

    wrote this in another thread, but it is relevant here, too.
    Wanting to buy a keyboard and reading this thread (and others), I went to a local Best Buy. They had quite a few of the wireless keyboards out. They had MC184LL(A) models and (B) models.
    ALL of the (A) models worked perfectly with the iPad (typing, brightness, volume, ipod functions, etc).
    NONE of the (B) models worked other than basic typing.
    They had a stack of maybe 50 new wireless keyboards on the shelf. All but two of them were (B) models.
    I bought one of the two (A) models. It is working perfectly on my iPad.
    Rob

  • How do you reset the special keyboard function keys?

    I used to use an older external keyboard that had Dashboard as F4. Now I got a newer keyboard that has Launchpad as F4. I was used to the old way, so I went into the keyboard shortcut for Dashboard and set it as F4. To my disappointment, however, it only works when I hold 'fn'. (I didn't expect this, as when the key was set to F13 holding fn wasn't required.) So anyway, that is even worse, and I wanted to change it back. However, it wouldn't let me. (In Launchpad & Dock > Keyboard Shortcuts, there used to be a checkmark next to Show Launchpad with a blank area on the right, but now when I try to click Restore Defaults, it forces me to choose a key... and pressing F4 without holding fn doesn't register.) And I know I can make it use all function keys as standard function keys, but not just for F4. And if I do it for all of them, I lose the other keyboard controls and I don't want that. I don't want to have to be stuck with the FunctionFlip 3rd party tool forever... How can I actually reset they key (or ideally, make it bring up dashboard without holding down fn)? You'd think that if it's so simple to change a setting one way it would be simple to change back. I'd even delete some prefs file if i had to.

    I figured out that if you remove the ~/Library/Preferences/com.apple.symbolichotkeys.plist file and restart, that restores the keyboard.
    Second question: Is there any way to make F4 (without holding fn) bring up Dashboard on Lion that doesn't require FunctionFlip? If it matters, I have a Time Machine backup of the symbolichotkeys.plist file from when I had the older keyboard.

  • How can I display the failure caption with click box when using function keys to navigate a sim?

    I am using the keyboard function keys to navigate a simulation using Click Boxes. For instance, F7 advances the simulation to the next screen, but if the learner selects F5, a failure caption displays. I have tried deleting and re-entering the click box, placing the click box at the top of the timeline levels, starting the click box at 0 and 0.5, making the click box visible and invisible, and make the click box the entire size of the screen.

    Well, I guess that's that. Thanks for replying, I do appreciate it or else I would have been trying for days, wasting all sorts of time.
    Until we meet again,
    James

Maybe you are looking for