Solved

disable Alt-F9 & Alt-F3

Posted on 2004-09-14
8
690 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

770 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