Solved

disable Alt-F9 & Alt-F3

Posted on 2004-09-14
8
700 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
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 25 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 25 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
winscp 000webhost.com 6 75
error log using ftp 7 56
PHP error function not working on AWS 10 75
combine Mutt command with a select statement to distribute file in Linux 2 35
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

820 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