(svn r25670) -Codechange: Pass UCS-4 characters to the edit box key handler.

This commit is contained in:
michi_cc 2013-08-05 20:36:32 +00:00
parent 1567e32d89
commit 270d8aa639
4 changed files with 4 additions and 4 deletions

View File

@ -362,7 +362,7 @@ bool Textbuf::HandleCaret()
return false;
}
HandleKeyPressResult Textbuf::HandleKeyPress(uint16 key, uint16 keycode)
HandleKeyPressResult Textbuf::HandleKeyPress(WChar key, uint16 keycode)
{
bool edited = false;

View File

@ -56,7 +56,7 @@ struct Textbuf {
bool DeleteChar(uint16 keycode);
bool MovePos(uint16 keycode);
HandleKeyPressResult HandleKeyPress(uint16 key, uint16 keycode);
HandleKeyPressResult HandleKeyPress(WChar key, uint16 keycode);
bool HandleCaret();
void UpdateSize();

View File

@ -2378,7 +2378,7 @@ static bool MaybeBringWindowToFront(Window *w)
* @return #ES_HANDLED if the key press has been handled and no other
* window should receive the event.
*/
EventState Window::HandleEditBoxKey(int wid, uint16 key, uint16 keycode)
EventState Window::HandleEditBoxKey(int wid, WChar key, uint16 keycode)
{
QueryString *query = this->GetQueryString(wid);
if (query == NULL) return ES_NOT_HANDLED;

View File

@ -488,7 +488,7 @@ public:
void UnfocusFocusedWidget();
bool SetFocusedWidget(int widget_index);
EventState HandleEditBoxKey(int wid, uint16 key, uint16 keycode);
EventState HandleEditBoxKey(int wid, WChar key, uint16 keycode);
void HandleButtonClick(byte widget);
int GetRowFromWidget(int clickpos, int widget, int padding, int line_height = -1) const;