breach / thrust

Chromium-based cross-platform / cross-language application framework
MIT License
2.77k stars 121 forks source link

KeyboardEvent not all events are registed #273

Closed CairX closed 9 years ago

CairX commented 9 years ago

Issue

When adding a keyboard event listener not all events are registered.

Keys noticed so far:

That the listed keys above register a keyboard event and logs this.

Example of working keys:

And log from such a key:

[28242:0329/064514:INFO:CONSOLE(22)] "[object KeyboardEvent]", source: ///address/// (22)

Test case

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>KeyboardEvent</title>
    </head>
    <body>
        <script>
            window.addEventListener("keypress", function(e) {
                console.log(e);
            });
        </script>
    </body>
</html>

Environment

Binding: pythrust 0.7.5 Binding host: Python 3.4.3 OS: Archlinux