keycodemapdb.git
5 years agoMerge branch 'master' into 'master'
Pavel Grunt [Thu, 9 Mar 2017 10:47:51 +0000 (10:47 +0000)] 
Merge branch 'master' into 'master'

keymap-gen: Import sys

See merge request !1

5 years agokeymap-gen: Import sys 1/head
Pavel Grunt [Wed, 8 Mar 2017 13:22:11 +0000 (14:22 +0100)] 
keymap-gen: Import sys

It is used in usage()

5 years agoAdd ability to generate Perl POD docs for key map names & values
Daniel P. Berrange [Fri, 3 Mar 2017 12:21:24 +0000 (12:21 +0000)] 
Add ability to generate Perl POD docs for key map names & values

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoFix xorg kbd mapping generator
Daniel P. Berrange [Wed, 15 Feb 2017 18:45:05 +0000 (18:45 +0000)] 
Fix xorg kbd mapping generator

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoPrint help message if no sub-command is given
Daniel P. Berrange [Wed, 15 Feb 2017 18:14:26 +0000 (18:14 +0000)] 
Print help message if no sub-command is given

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoUse print_function in python 2
Daniel P. Berrange [Wed, 15 Feb 2017 18:13:51 +0000 (18:13 +0000)] 
Use print_function in python 2

To allow portability with py3 use the print_function. This
requires python >= 2.6.0

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoDon't call next() method in CSV reader
Daniel P. Berrange [Wed, 15 Feb 2017 18:13:06 +0000 (18:13 +0000)] 
Don't call next() method in CSV reader

The next() method was renamed in python3. Simply avoid calling
it to ensure portability

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoUse correct generator class for glib2
Daniel P. Berrange [Wed, 15 Feb 2017 14:57:24 +0000 (14:57 +0000)] 
Use correct generator class for glib2

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoUse guint16 / unsigned short for C data types
Daniel P. Berrange [Wed, 15 Feb 2017 14:53:17 +0000 (14:53 +0000)] 
Use guint16 / unsigned short for C data types

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoAdd missing X11 map field
Daniel P. Berrange [Wed, 15 Feb 2017 14:35:41 +0000 (14:35 +0000)] 
Add missing X11 map field

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
5 years agoInitial import of code
Daniel P. Berrange [Wed, 15 Feb 2017 14:19:28 +0000 (14:19 +0000)] 
Initial import of code

The data/keymaps.csv file is taken from the latest SPICE-GTK
repository. All contributions from this original file in both
SPICE-GTK and GTK-VNC repos were made under Red Hat copyright.
Red Hat grants permission to relicense to dual GPL2 or 3-clause
BSD.

The data/keymap-gen tool is a brand new file.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>