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.
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.