#13 Disable AllChars based on window class name

v5
open
5
2012-07-19
2008-11-01
Anonymous
No

From: Enrik Berkhan Enrik.Berkhan@inka.de

I'm happily using AllChars like I'm using the compose key feature on X11.

One problem is that AllChars doesn't work with X11 windows on Windows: the injected keys are not understood properly. I don't know why, most probably X11 servers like Xming can only handle 'raw' keyboard events.

One (annoying) solution is to use different HotKeys/compose keys for windows and X11.

So I thought it would be helpful to be able to disable AllChars based on the window class name of a Windows window as all X11 windows on Windows happen to have the same class name, at least with Xming ("Xming X").

Find attached a proof of concept (diff against SVN 176) that implements this feature, harcoded for "Xming X".

Enrik

Discussion

  • Joachim Breuer

    Joachim Breuer - 2009-02-12

    Thanks a ton for the patch!

    I've incorporated the patch and added a configuration mechanism.

    In %AppData%\AllChars.xml, you can now have a new element like this:

    <AllChars>
    ...
    <Ignore>
    <WindowClass>Xming X</WindowClass>
    <WindowClass>otherClassToIgnore</WindowClass>
    ...
    </Ignore>
    ...
    </AllChars>

    AllChars will then ignore the HotKey when the class of the active window matches one of the strings given in this AllChars.xml element.

    This enhancement will be available with the next release.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks