MCPcopy Create free account
hub / github.com/NetHack/NetHack / trans_num_keys

Function trans_num_keys

outdated/sys/mac/macwin.c:1408–1434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406}
1407
1408void
1409trans_num_keys(EventRecord *theEvent)
1410{
1411#if defined(__SC__) || defined(__MRC__)
1412#pragma unused(theEvent)
1413#endif
1414/* KMH -- Removed this translation.
1415 * Number pad keys should always emit digit characters.
1416 * That's consistent with the default MacOS behavior.
1417 * The number_pad option controls how digits are interpreted.
1418 */
1419#if 0
1420 if (Cmd.num_pad) {
1421 Handle h = GetResource('Nump', theEvent->modifiers & shiftKey ? 129 : 128);
1422 if (h) {
1423 short inkey = (theEvent->message & keyCodeMask), *ab = (short *)*h;
1424 int i = ab[0];
1425 for (; i; i--) {
1426 if (inkey == (ab[i] & keyCodeMask)) {
1427 theEvent->message = ab[i];
1428 break;
1429 }
1430 }
1431 }
1432 }
1433#endif
1434}
1435
1436/*
1437 * Routine used to select and de-select elements in a menu window, used by

Callers 1

GeneralKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected