Age | Commit message (Collapse) | Author | Files | Lines |
|
While we know the integer values corresponding to most key sets, the
QEMU QKeyCode values are explicitly not-public, not guaranteed stable.
We must therefore be able to emit symbolic enum constants, instead of
raw int values.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
This give us much nicer lookup for string keys, boundary checks
and better introspection when it comes to iteration.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
The array might not be in the same unit as the code using it, so
we need a way of indicating the number of entries.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Some systems use string identifiers rather than integers.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
The right command key was missing and the menu key was mis-assigned.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
|
|
keycode means something else in X11, so let's adjust this header to
avoid confusion.
|
|
There were a lot of errors for the extended codes. Re-generate
the entries based on the mapping Linux uses.
|
|
XT, Linux RAW and and AT set 1 are all really the same thing so merge
them all together. Linux RAW uses a different encoding, but we can
compute that as needed.
|
|
The maps are indexed by Linux keycode, not by the keycode type
corresponding to the names.
|
|
Designated initializers ([index] = value,) are not available in C++:
https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
So add a custom stdc++ output format which outputs all array entries instead
of the "sparse" C variant.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
With older argparse (circa 2.7.4 vintage), using set_defaults
to set a function on the main parser prevents it from ever
calling the functions set on the sub-parser.
We registered this default function so that we could get help
usage with argparse on python 3.x, since it doesn't print
error by default if no sub-parser command is given (but 2.x
does).
To workaround this, we instead check for 'func' attribute
existing on the parsed args. This is a no-op for python 2.x
since it already printed a usage message by default.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
keymap-gen: Import sys
See merge request !1
|
|
It is used in usage()
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
To allow portability with py3 use the print_function. This
requires python >= 2.6.0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
The next() method was renamed in python3. Simply avoid calling
it to ensure portability
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
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>
|