Revert "MenuField: Make sure input is a single byte"
This reverts commit 4e075e0f4c
.
This commit is contained in:
parent
7462734202
commit
163fc310f7
@ -439,11 +439,6 @@ BMenuField::MouseDown(BPoint where)
|
|||||||
void
|
void
|
||||||
BMenuField::KeyDown(const char* bytes, int32 numBytes)
|
BMenuField::KeyDown(const char* bytes, int32 numBytes)
|
||||||
{
|
{
|
||||||
if (numBytes != 1) {
|
|
||||||
BView::KeyDown(bytes, numBytes);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (bytes[0]) {
|
switch (bytes[0]) {
|
||||||
case B_SPACE:
|
case B_SPACE:
|
||||||
case B_RIGHT_ARROW:
|
case B_RIGHT_ARROW:
|
||||||
|
Loading…
Reference in New Issue
Block a user