MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_native_key

Function get_native_key

examples/pysdl2.py:461–469  ·  view source on GitHub ↗

Helper function for returning the correct native key map for the operating system.

(key)

Source from the content-addressed store, hash-verified

459
460
461def get_native_key(key):
462 """
463 Helper function for returning the correct native key map for the operating
464 system.
465 """
466 if sys.platform == 'darwin':
467 return MACOS_TRANSLATION_TABLE.get(key, key)
468
469 return key
470
471
472class LoadHandler(object):

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected