Skip to content

Commit

Permalink
Remove glfw workarounds fixed in 3.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 23, 2023
1 parent 1d2c0c9 commit e435f18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions internal/driver/glfw/window_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,6 @@ func keyCodeToKeyName(code string) fyne.KeyName {
}

func keyToName(code glfw.Key, scancode int) fyne.KeyName {
if runtime.GOOS == "darwin" && scancode == 0x69 { // TODO remove once fixed upstream glfw/glfw#1786
code = glfw.KeyPrintScreen
}

ret := glfwKeyToKeyName(code)
if ret != fyne.KeyUnknown {
return ret
Expand Down
4 changes: 0 additions & 4 deletions internal/driver/glfw/window_goxjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,6 @@ func keyCodeToKeyName(code string) fyne.KeyName {
}

func keyToName(code glfw.Key, scancode int) fyne.KeyName {
if runtime.GOOS == "darwin" && scancode == 0x69 { // TODO remove once fixed upstream glfw/glfw#1786
code = glfw.KeyPrintScreen
}

ret := glfwKeyToKeyName(code)
if ret != fyne.KeyUnknown {
return ret
Expand Down

0 comments on commit e435f18

Please sign in to comment.