[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Adding more function keys support
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] Adding more function keys support |
Date: |
Wed, 13 Dec 2017 09:14:58 +0000 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Tue, Dec 12, 2017 at 12:49:34PM -0500, Programmingkid wrote:
>
> > On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange <address@hidden> wrote:
> >
> > On Sun, Dec 10, 2017 at 02:10:41AM -0500, Programmingkid wrote:
> >> On Macintosh keyboards there is a key called fn that is used to give the
> >> function keys more functionality. Does this key exist in the keyboard keys
> >> database?
> >
> > When you say "Macintosh keyboards" are you talking about the old style
> > keyboards with Apple's custom ADB connector, or simply Apple branded
> > USB keyboards ?
>
> USB keyboards.
>
> >
> > If its the latter (USB), then please plug it into a Linux machine, and
> > in a text console (ie not X11) run 'showkey' and press this 'fn' key on
> > its own and tell me what (if any) hex code gets printed.
>
> There was no response to the fn key.
Doh, I made a mistake - you need to run 'showkey -s' to get raw scancodes.
Can you try this again, pressing 'fn' on its own, and also press 'fn' in
combination with some function keys.
> >> Also could keys F16 to F24 (Q_KEY_CODE_F16 to Q_KEY_CODE_F24) be added to
> >> the database?
> >
> > Those are already defined in keycodemapdb, so we just need to give them
> > names in the qapi schema, and then add the name mapping to keycodemapdb.
>
> I have a vague memory of doing something like this a long time ago.
> Hopefully I can find the path if it exists.
In qapi/ui.json you need to edit the enum 'QKeyCode' to define the
extra keys.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [Qemu-devel] Adding more function keys support, Programmingkid, 2017/12/10
- Re: [Qemu-devel] Adding more function keys support, Daniel P. Berrange, 2017/12/12
- Re: [Qemu-devel] Adding more function keys support, Programmingkid, 2017/12/12
- Re: [Qemu-devel] Adding more function keys support,
Daniel P. Berrange <=
- Re: [Qemu-devel] Adding more function keys support, Programmingkid, 2017/12/13
- Re: [Qemu-devel] Adding more function keys support, BALATON Zoltan, 2017/12/13
- Re: [Qemu-devel] Adding more function keys support, Programmingkid, 2017/12/13
- Re: [Qemu-devel] Adding more function keys support, Eric Blake, 2017/12/13
- Re: [Qemu-devel] Adding more function keys support, Programmingkid, 2017/12/13
- Re: [Qemu-devel] Adding more function keys support, Daniel P. Berrange, 2017/12/14