Cursor focus tracking using QAccessible

    dipesh's picture
    2010
    20
    Jul

    KMag used to zoom into part of the screen got just today an additional mode: Follow Focus Mode. That means that kmag can now follow either the mouse pointer or the keyboard cursor.

    Video of KMag with 'Follow Focus' mode

    Extending for example KWin's full-screen zoom plugin can be done with something like;

    QDBusConnection::sessionBus().connect("org.kde.kaccessibleapp",
        "/Adaptor", "org.kde.kaccessibleapp.Adaptor", "focusChanged",
        this, SLOT(focusChanged(int,int)));
    

    This is work in progress and only works with Qt and KDE applications. Adding support for others shouldn't be that difficult with qtatspi. To try out checkout kdeaccessibility from SVN trunk (>=r1152354) and;

    export QT_ACCESSIBILITY=1
    kmag
    

    Comments

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.
    ungethym's picture

    Looks great!

    I have to admit, I haven't used it yet, but it looks great!

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.