If an unsupported wxKeyCode was passed to this function, an undefined value
was returned. Return -1 instead to indicate failure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65387
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
case WXK_NUMPAD_DECIMAL: keycode = kVK_ANSI_KeypadDecimal; break;
case WXK_NUMPAD_DIVIDE: keycode = kVK_ANSI_KeypadDivide; break;
- default: wxLogDebug( "Unrecognised keycode %d", code );
+ default:
+ wxLogDebug( "Unrecognised keycode %d", code );
+ keycode = -1;
}
return keycode;