Winit: how to ignore backsapce key event on input method?

Created on 26 Jan 2019  路  3Comments  路  Source: rust-windowing/winit

According to this issue https://github.com/jwilm/alacritty/issues/1606, I try look into Alacritty source code,and I found out that Alacritty accpet KeyboardInput directly. I want to know how to ignore backspace KeyboardInput event on input method OR how to recognize the event has been caputure by input method ? thanks

macOS needs investigation bug question

Most helpful comment

I've got a WIP branch (on Windows, at least) for dispatching all the keyboard and IME events in a single event struct, which should allow this. IME support hasn't been completed on that, though.

All 3 comments

I think the step is:

  1. get current input source (or get input source change event from os)
  2. if input source is some input method, ignore input key event
  3. loop above step

step 1 is os depended.

And maybe ignore key event should be configurable, it's application level choose.

@coderhwz is there any progress for this issue?

I've got a WIP branch (on Windows, at least) for dispatching all the keyboard and IME events in a single event struct, which should allow this. IME support hasn't been completed on that, though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swiftcoder picture swiftcoder  路  3Comments

rukai picture rukai  路  4Comments

k0nserv picture k0nserv  路  3Comments

francesca64 picture francesca64  路  4Comments

ryanisaacg picture ryanisaacg  路  3Comments