Re: [Qemu-devel] Adding more function keys support

2017-12-14 Thread Daniel P. Berrange
On Wed, Dec 13, 2017 at 02:18:49PM -0500, Programmingkid wrote: > > > On Dec 13, 2017, at 1:22 PM, BALATON Zoltan wrote: > > > > On Wed, 13 Dec 2017, Programmingkid wrote: > >>> On Dec 13, 2017, at 4:14 AM, Daniel P. Berrange > >>> wrote: > >>> > >>> On Tue, Dec 12, 2017 at 12:49:34PM -0500,

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread Programmingkid
> On Dec 13, 2017, at 9:20 PM, Eric Blake wrote: > > On 12/13/2017 01:18 PM, Programmingkid wrote: > >> Thank you BALATON for the file. One thing that caught my eye in this file is >> this: >> > >> if (usage->code == KEY_FN) { >> asc->fn_on = !!value; >> >> Why would they

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread Eric Blake
On 12/13/2017 01:18 PM, Programmingkid wrote: > Thank you BALATON for the file. One thing that caught my eye in this file is > this: > > if (usage->code == KEY_FN) { > asc->fn_on = !!value; > > Why would they need the double !? Double '!!' is an idiomatic way to force a v

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread Programmingkid
> On Dec 13, 2017, at 1:22 PM, BALATON Zoltan wrote: > > On Wed, 13 Dec 2017, Programmingkid wrote: >>> On Dec 13, 2017, at 4:14 AM, Daniel P. Berrange wrote: >>> >>> On Tue, Dec 12, 2017 at 12:49:34PM -0500, Programmingkid wrote: > On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange >

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread BALATON Zoltan
On Wed, 13 Dec 2017, Programmingkid wrote: On Dec 13, 2017, at 4:14 AM, Daniel P. Berrange wrote: On Tue, Dec 12, 2017 at 12:49:34PM -0500, Programmingkid wrote: On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange wrote: On Sun, Dec 10, 2017 at 02:10:41AM -0500, Programmingkid wrote: On Macin

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread Programmingkid
> On Dec 13, 2017, at 4:14 AM, Daniel P. Berrange wrote: > > On Tue, Dec 12, 2017 at 12:49:34PM -0500, Programmingkid wrote: >> >>> On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange wrote: >>> >>> On Sun, Dec 10, 2017 at 02:10:41AM -0500, Programmingkid wrote: On Macintosh keyboards there

Re: [Qemu-devel] Adding more function keys support

2017-12-13 Thread Daniel P. Berrange
On Tue, Dec 12, 2017 at 12:49:34PM -0500, Programmingkid wrote: > > > On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange 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 mo

Re: [Qemu-devel] Adding more function keys support

2017-12-12 Thread Programmingkid
> On Dec 12, 2017, at 9:34 AM, Daniel P. Berrange 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? > >

Re: [Qemu-devel] Adding more function keys support

2017-12-12 Thread Daniel P. Berrange
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

[Qemu-devel] Adding more function keys support

2017-12-09 Thread Programmingkid
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? Also could keys F16 to F24 (Q_KEY_CODE_F16 to Q_KEY_CODE_F24) be added to the database? Thank you.