MenuField: Make sure input is a single byte

This commit is contained in:
John Scipione
2013-08-24 01:58:10 -04:00
parent ef9294ec86
commit 4e075e0f4c
+5
View File
@@ -430,6 +430,11 @@ BMenuField::MouseDown(BPoint where)
void
BMenuField::KeyDown(const char* bytes, int32 numBytes)
{
if (numBytes != 1) {
BView::KeyDown(bytes, numBytes);
return;
}
switch (bytes[0]) {
case B_SPACE:
case B_RIGHT_ARROW: