randomPoison / text-edit

1 stars 0 forks source link

Investigate  (INVALID CHARACTER) coming from glium #2

Open randomPoison opened 7 years ago

randomPoison commented 7 years ago

When you hit the "delete" character on my OS X machine, glutin sends  (U+F728 INVALID CHARACTER) along with VirtualKeyCode::Delete. I suspect this is a bug, as it sends a valid control character with VirtualKeyCode::Back. If this is intended behavior from glium then we'll handle it, but if not we could stand to send a PR to glium (or winit, as appropriate) fixing the issue.

randomPoison commented 7 years ago

Similar characters are sent when pressing the arrow keys. It looks like these characters are all "private use codepoints", which means they're probably OS X-specific. That'd explain why they're not considered control characters. I'd bet glium is meant to just pass these through for the application to handle, but it's still worth confirming.