Solved

disable Alt-F9 & Alt-F3

Posted on 2004-09-14
8
675 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now