Re: keyhandling with focus widgets and modifier-less accelerators
- From: Paul Davis <paul linuxaudiosystems com>
- To: "David Necas (Yeti)" <yeti physics muni cz>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: keyhandling with focus widgets and modifier-less accelerators
- Date: Fri, 10 Mar 2006 10:18:41 -0500
On Fri, 2006-03-10 at 15:33 +0100, David Necas (Yeti) wrote:
> On Fri, Mar 10, 2006 at 09:26:51AM -0500, Paul Davis wrote:
> > i think that the comment inside this function speaks for itself. posted
> > just in case other people find it useful. of course, there is always the
> > possibility that GTK should do something like this by default.
> >
> > bool
> > key_press_focus_accelerator_handler (Gtk::Window& window,
> > GdkEventKey* ev)
> > {
> > ...
> >
> > if (ev->state & ~Gdk::SHIFT_MASK) {
>
> (refraining from comments on the whole idea of modifierless
> accelerators)
well, that is pretty central. not all applications that use GTK are
office productivity/internet-presentation tools. the notion of focus
widgets and focus chains are actually impediments to some applications,
in which every key on the keyboard is potentially an accelerator. you
can even buy special keyboards or keyboard labels to work with such
applications. the fact that most apps don't work like this doesn't mean
that none should.
> What does this do when I have NumLock on? When I switch to
> a secondary XKB keyboard? When I...
if you have NumLock on, that is treated as a modifier, and the key gets
tested as an accelerator before its passed to the focus chain.
not sure what a 2ndary XKB keyboard has to do with this ....
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]