[maemo-developers] Xournal and Volume keys

From: Aniello Del Sorbo anidel at gmail.com
Date: Fri Nov 6 13:53:04 EET 2009
2009/11/6 Faheem Pervez <trippin1 at gmail.com>:
> On Fri, Nov 6, 2009 at 11:31 AM, Aniello Del Sorbo <anidel at gmail.com> wrote:
>> No hints on this?
>>
>> How can I intercept the Volume +/- keys in Maemo 5?
> Follow 1.7 on http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Porting_Software/Porting_Existing_GTK%2B_Application_to_Maemo_5
> which tells you how to set the required atom to have control over the
> +/- buttons. After that, just listen to "key-press-event" as normal.
>
Ah! There it is!!
I remember I've seen it, but couldn't find it... Thanks a lot :)

> Personally, I do think the zoom keys should be used for control of the
> application, if the application would benefit from the use of them.
> The PDF Viewer, for example, uses them. :)

The "personally" part convinced me to make it configurable :)
I personally think it should not, it make the keys' usage inconsistent
and I always liked global "keys" for Volume/Media.

The Volume Keys are already incosistent, if you are in landscape mode
the + is the right most one, while if you are in portrait mode
(e.g. in a Call), then the + becomes the left most one.
Makes sense in Call as the + key should be the top one, but in
portrait they could've stick with it instead of swapping them.

-- 
anidel
Sent from London, Eng, United Kingdom
More information about the maemo-developers mailing list