Skip to content

v3.3/glfw: GetKeyName incorrectly panics on unknown key and scancode #386

@Jacalz

Description

@Jacalz

We have a few issues open for cases where we are recovering from a panic in cases where a button that GLFW gets an invalid scancode because of keys that it doesn't recognize (https://github.com/search?q=repo%3Afyne-io%2Ffyne+poll+event+error++&type=issues&state=open). This is currently being handled by deferring a recover function:
https://github.com/fyne-io/fyne/blob/dc34dad76137def4466ab8eb4166e7ae741ef9ee/internal/driver/glfw/loop_desktop.go#L28-L34

It would be nice if we could teach acceptError() to avoid issuing a panic in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions