BWindow: Rename string to bytes
This commit is contained in:
@@ -3720,11 +3720,11 @@ BWindow::_HandleKeyDown(BMessage* event)
|
|||||||
if (!_IsFocusMessage(event))
|
if (!_IsFocusMessage(event))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const char* string = NULL;
|
const char* bytes = NULL;
|
||||||
if (event->FindString("bytes", &string) != B_OK)
|
if (event->FindString("bytes", &bytes) != B_OK)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
char key = string[0];
|
char key = bytes[0];
|
||||||
|
|
||||||
uint32 modifiers;
|
uint32 modifiers;
|
||||||
if (event->FindInt32("modifiers", (int32*)&modifiers) != B_OK)
|
if (event->FindInt32("modifiers", (int32*)&modifiers) != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user