All of lore.kernel.org
 help / color / mirror / Atom feed
From: Programmingkid <programmingkidx@gmail.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Adding more function keys support
Date: Tue, 12 Dec 2017 12:49:34 -0500	[thread overview]
Message-ID: <11216FAC-3F62-43AF-ACD8-00F28B7AD886@gmail.com> (raw)
In-Reply-To: <20171212143421.GD26971@redhat.com>


> On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange <berrange@redhat.com> 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.

> 
> Also, under OS-X run this app:
> 
>  https://manytricks.com/keycodes/
> 
> and again let me know what it reports when the fn key is pressed on its
> on.

Yes the Key Codes application does report the fn key being pressed. 

Modifier Change
	Keys:		
	Key Code:	65535 / 0xffff
	Modifiers:	8388864 / 0x800100 ⓘ

Modifier Change
	Keys:		
	Key Code:	65535 / 0xffff
	Modifiers:	256 / 0x100 ⓘ

> Then also do the same but press 'fn' in combination with another function
> key.

The value did not change.

> 
> The key thing we need to understand is whether this magic behaviour of
> the 'fn' key is actually changing what the main function keys send as
> scancodes.

This is hard to figure out. If the function key is mapped to a function like Volume Up, then no event is logged in the Key Codes application. So this probably means the operating system catches the key and does not share it with other applications.

> 
>> 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.

  reply	other threads:[~2017-12-12 17:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10  7:10 [Qemu-devel] Adding more function keys support Programmingkid
2017-12-12 14:34 ` Daniel P. Berrange
2017-12-12 17:49   ` Programmingkid [this message]
2017-12-13  9:14     ` Daniel P. Berrange
2017-12-13 16:03       ` Programmingkid
2017-12-13 18:22         ` BALATON Zoltan
2017-12-13 19:18           ` Programmingkid
2017-12-14  2:20             ` Eric Blake
2017-12-14  2:23               ` Programmingkid
2017-12-14 10:27             ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11216FAC-3F62-43AF-ACD8-00F28B7AD886@gmail.com \
    --to=programmingkidx@gmail.com \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.