Gtk2::Gdk::Keysyms - different platforms
- From: Mario Kemper <mario kemper googlemail com>
- To: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Gtk2::Gdk::Keysyms - different platforms
- Date: Thu, 20 Jan 2011 11:27:22 +0100
Hi all,
I am doing some custom key handling in one of my programs. I am using
Gtk2::Gdk::Keysyms for deciphering keycodes in key events, but the
problem is that the keysyms differ on some platforms, e.g. ArchLinux:
perldoc -m Gtk2::Gdk::Keysyms
generated from /usr/include/gtk-2.0/gdk/gdkkeysyms.h
package Gtk2::Gdk::Keysyms;
%Gtk2::Gdk::Keysyms = (
'KEY_VoidSymbol' => 0xffffff,
'KEY_BackSpace' => 0xff08,
'KEY_Tab' => 0xff09,
'KEY_Linefeed' => 0xff0a,
'KEY_Clear' => 0xff0b,
'KEY_Return' => 0xff0d,
'KEY_Pause' => 0xff13,
'KEY_Scroll_Lock' => 0xff14,
'KEY_Sys_Req' => 0xff15,
'KEY_Escape' => 0xff1b,
'KEY_Delete' => 0xffff,
'KEY_Multi_key' => 0xff20,
'KEY_Codeinput' => 0xff37,
'KEY_SingleCandidate' => 0xff3c,
'KEY_MultipleCandidate' => 0xff3d,
'KEY_PreviousCandidate' => 0xff3e,
'KEY_Kanji' => 0xff21,
'KEY_Muhenkan' => 0xff22,
'KEY_Henkan_Mode' => 0xff23,
'KEY_Henkan' => 0xff23,
On Ubuntu and most other distributions it is 'Escape' => 0xff1b instead
of 'KEY_Escape' => 0xff1b.
This means that the example here
http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Keysyms.html does not
work as well under ArchLinux.
Can anyone please shed some light on this.
Regards
Mario
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]