Solved

disable Alt-F9 & Alt-F3

Posted on 2004-09-14
8
744 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 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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