Re: [Qemu-devel] [RFC PATCH 2/5] kbd-state: add hotkey registry

2018-06-05 Thread Programmingkid
> On Jun 5, 2018, at 6:20 AM, Gerd Hoffmann wrote: > > Hi, > >> You say the hotkey is a QKeyCode and a modifier key combined. But it looks >> like a single QKeyCode would be supported. I would prefer being able to use >> a single key like F16 to ungrab the mouse. Would that be possible

Re: [Qemu-devel] [RFC PATCH 2/5] kbd-state: add hotkey registry

2018-06-05 Thread Gerd Hoffmann
Hi, > You say the hotkey is a QKeyCode and a modifier key combined. But it looks > like a single QKeyCode would be supported. I would prefer being able to use a > single key like F16 to ungrab the mouse. Would that be possible here? > > Kbd_state_hotkey_register(kbd, KBD_HOTKEY_GRAB,

Re: [Qemu-devel] [RFC PATCH 2/5] kbd-state: add hotkey registry

2018-06-01 Thread Programmingkid
> On Feb 21, 2018, at 12:08 PM, Gerd Hoffmann wrote: > > Add support to register hotkeys and to check whenever a given QKeyCode > combined with the current modifier state is a hotkey. A hotkey can be > any key combined with up to three modifier keys. I have finally reviewed the patches you

[Qemu-devel] [RFC PATCH 2/5] kbd-state: add hotkey registry

2018-02-21 Thread Gerd Hoffmann
Add support to register hotkeys and to check whenever a given QKeyCode combined with the current modifier state is a hotkey. A hotkey can be any key combined with up to three modifier keys. Signed-off-by: Gerd Hoffmann --- include/ui/kbd-state.h | 27