[Qemu-devel] [PATCH] input-linux: customizable toggle keys

2018-08-23 Thread Ryan El Kochta via Qemu-devel
This patch introduces a new string option to the input-linux commandline: toggle_keys=[num]:[num]:[num] ... Separated by colons, toggle_keys allows the user to specify the key IDs of all the keys desired for switching between the guest and host. These key IDs can be found in: include/standard-he

[Qemu-devel] [PATCH] input-linux: customizable toggle keys v2

2018-08-23 Thread Ryan El Kochta via Qemu-devel
This patch introduces a new string option to the input-linux commandline: toggle_keys=[num]:[num]:[num] ... Separated by commas, toggle_keys allows the user to specify the key IDs of all the keys desired for switching between the guest and host. These key IDs can be found in: include/standard-he

Re: [Qemu-devel] [PATCH] input-linux: toggle for lock keys

2018-08-27 Thread Ryan El Kochta via Qemu-devel
I personally use the Scroll Lock key. On Linux, Scroll Lock (along with all the other lock keys) is easy to disable with an xmodmap command. On Windows (or, I'd assume, other guests), it requires third party software, which is why it's likely easier to just filter them out from QEMU. Or

Re: [Qemu-devel] [PATCH] input-linux: toggle for lock keys

2018-08-30 Thread Ryan El Kochta via Qemu-devel
On August 30, 2018 6:51 AM, Gerd Hoffmann wrote: > On Mon, Aug 27, 2018 at 01:49:22PM +, Ryan El Kochta wrote: > > > I personally use the Scroll Lock key. On Linux, Scroll Lock (along > > with all the other lock keys) is easy to disable with an xmodmap > > command. On Windows (or, I'd assume,

Re: [Qemu-devel] [PATCH] input-linux: toggle for lock keys

2018-08-31 Thread Ryan El Kochta via Qemu-devel
On Aug 31, 2018, 2:07 AM, Gerd Hoffmann wrote: Hi, > That's a wonderful idea. Would you be comfortable with > grab_toggle=custom:x:x as well? What this is supposed to do? cheers, Gerd It would be the same as the original patch (you can input custom key IDs if you so desire) in addition to a f

Re: [Qemu-devel] [PATCH] input-linux: toggle for lock keys

2018-09-03 Thread Ryan El Kochta via Qemu-devel
On September 3, 2018 2:29 AM, Gerd Hoffmann wrote: > On Fri, Aug 31, 2018 at 01:31:06PM +, Ryan El Kochta wrote: > > > On Aug 31, 2018, 2:07 AM, Gerd Hoffmann wrote: > > Hi, > > > > > That's a wonderful idea. Would you be comfortable with > > > grab_toggle=custom:x:x as well? > > > > What thi

[Qemu-devel] [PATCH] input-linux: customizable grab toggle keys v3

2018-09-03 Thread Ryan El Kochta via Qemu-devel
This patch adds a new option to the input-linux object: grab_toggle=key-key-key These keys can be one of the following: * lctrl * rctrl * lalt * ralt * lshift * rshift * backtick * scrolllock The user can pick any combination of these keys. The VM's grab of the evdev device will be toggled when

[Qemu-devel] [PATCH] input-linux: toggle for lock keys

2018-08-22 Thread Ryan El Kochta via Qemu-devel
This patch introduces three new options on the input-linux commandline: (a) ignore_caps_lock=[on|off] (b) ignore_num_lock=[on|off] (c) ignore_scroll_lock=[on|off] If enabled, the key will be disabled and not forwarded to the guest. There are two main reasons for this: (a) Without keyboard LEDs,