BWindow: Rename string to bytes

This commit is contained in:
John Scipione
2016-03-17 15:19:45 -07:00
parent 2ab6ca298a
commit 105a543e3d
+3 -3
View File
@@ -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)