X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c55365891877331935a19931fd2d6f145748fa42..6ff734acec7f63bdb03fbe9033958f1ead0a5bee:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index ac1b1a3e91..730f6923c5 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -958,7 +958,7 @@ bool wxPopupMenuWindow::ProcessKeyDown(int key) default: // look for the menu item starting with this letter - if ( wxIsalnum(key) ) + if ( wxIsalnum((wxChar)key) ) { // we want to start from the item after this one because // if we're already on the item with the given accel we want to @@ -2284,7 +2284,7 @@ void wxMenuBar::OnKeyDown(wxKeyEvent& event) int wxMenuBar::FindNextItemForAccel(int idxStart, int key, bool *unique) const { - if ( !wxIsalnum(key) ) + if ( !wxIsalnum((wxChar)key) ) { // we only support letters/digits as accels return -1;