Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function keys intercepted by operating system. How to avoid?



"James H H Lampert" <email@hidden> wrote:

>It seems that the function keys, both shifted and
>unshifted, (all are absolutely essential on any 5250-type
>terminal) are being intercepted by the operating system
>before my code can get them as KeyEvents.
>
>How does one keep this from happening?

I'm not sure if the following will work, but it's worth a shot.

In System Preferences, the Keyboard and Mouse pane has a Keyboard Shortcuts
tab.  You can bind keys to menu-commands there.  If your app uses Swing and
has screen-menubar enabled, I think it will work, but you should check it.

Also, try disabling the F-keys in Expose', or assign them to ctrl-F-keys,
or whatever.

The monitor brightness is also controlled by F14 and F15, but I know of no
way to disable that.  It may be that an override in Keyboard Shortcuts will
do it, but I haven't investigated it.


>I'm sure there must be some online document available
>explaining how to do this; if so, just point me in the
>right direction.

I don't know of any such document, or whether it's even possible.  Some
F-keys are clearly available to applications, because pressing some of them
in, say, TextEdit or Terminal, actually appears in the app.  You can search
ADC for F-keys, function-keys, etc.:
  <http://developer.apple.com/search/search.html>


The only other thing I can think of is to use a key-macro program to send
specific sequences to your app, which it is programmed to recognize as
these "F-key proxies".

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.