MCPcopy Create free account
hub / github.com/OpenSpace/OpenSpace / mapFromGlfwToNative

Function mapFromGlfwToNative

modules/webbrowser/src/eventhandler.cpp:103–126  ·  view source on GitHub ↗

Map from GLFW key codes to native key codes for Mac. The keys inserted here are based from setting breakpoints in the CEF-bundled 'cefclient' (browser_window_osr_mac.mm) as well as trial and error. There is an issue for proper cross-platform key events in CEF: https://bitbucket.org/chromiumembedded/cef/issues/1750 For now, the 'important' keys are inserted here manually.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

charCallbackMethod · 0.85
keyboardCallbackMethod · 0.85
specialKeyEventMethod · 0.85
toCefKeyEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected