Helper function for returning the correct native key map for the operating system.
(key)
| 459 | |
| 460 | |
| 461 | def 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 | |
| 472 | class LoadHandler(object): |