BillyDM / egui-baseview

A baseview backend for the egui Rust GUI library
MIT License
22 stars 17 forks source link

Keyboard layout not respected #10

Closed helgoboss closed 2 years ago

helgoboss commented 2 years ago

Hi, thanks for this awesome crate. I noticed that Cmd+Z isn't working as expected to trigger an undo in the text edit widget. I need to press Cmd+Y instead. The reason is that I have a German keyboard layout in which both keys are swapped.

In the official egui-winit integration this works. I checked its source and it translates the logical key instead of the physical key to the egui Key enum. I'm going to push a PR later today.