?
Solved

disable Alt-F9 & Alt-F3

Posted on 2004-09-14
8
Medium Priority
?
770 Views
Last Modified: 2012-06-27
Hi,

I have an application that I want to always remain on top. I do this using a Java Timer. However, a couple keyboard shortcuts such as Alt-F3 & Alt-F9 minimize this screen. How can I disable use of such keys on my system so that even if users hit Alt-F3 & Alt-F9, nothing happens ?

Thanks!
0
Comment
Question by:menong120699
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 12061232
I always consider disregarding you user's wishes to the point of pissing them off
to be the epitome of UI design.  Why is that that only Window's programmers want
to do this type of thing???


0
 

Accepted Solution

by:
MrTOXIC earned 100 total points
ID: 12062324
If you are using KDE, execute 'kcontrol' (The KDE Control Centre). In the "Index" tab, take "Regional & Accessibility" -> "Keyboard Shortcuts". Here, you can disable shortcut keys for minimizing window.
0
 

Expert Comment

by:MrTOXIC
ID: 12062480
If you are using Gnome, execute 'gnome-keybinding-properties' to change keyboard shortcuts.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 20

Expert Comment

by:Gns
ID: 12063681
The question perhaps is what the blazes "Always on top" has to do with minimization/iconification to do... The answer is "nothing", of course:-)

-- Glenn
0
 

Author Comment

by:menong120699
ID: 12068717
Can I somehow intercept these calls either in C or Java so that although Alt-F9 is enabled to "minimize" a screen, that actually doesn't happen because of the intercept code I put in ?

Thanks to all!
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 100 total points
ID: 12069179
Hm, I don't really think you'll see the key events properly... Test it with xev and you'll see that the Alt_L keypress gets through to your app, but never the F9... All you'll see is the keyrelease;).
Perhaps you could register your own keyhandler, but really.... these things are configurable in most desktops, so programming for one set of keystrokes would land you nowhere anyway.

You could scrounge up the code for hotkey perhaps... Just to see what it'd entail:-).

Many windowmanagers would handle "transient windows" like they couldn't be iconified... Mayby try use that.

-- Glenn       
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question