Fixed starting keyboard navigation (when no view has focus yet in which
case the window receives the keyboard message). This fixes bug #411. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17156 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -600,8 +600,12 @@ BWindow::IsFront() const
|
|||||||
void
|
void
|
||||||
BWindow::MessageReceived(BMessage *msg)
|
BWindow::MessageReceived(BMessage *msg)
|
||||||
{
|
{
|
||||||
if (!msg->HasSpecifiers())
|
if (!msg->HasSpecifiers()) {
|
||||||
|
if (msg->what == B_KEY_DOWN)
|
||||||
|
_KeyboardNavigation();
|
||||||
|
|
||||||
return BLooper::MessageReceived(msg);
|
return BLooper::MessageReceived(msg);
|
||||||
|
}
|
||||||
|
|
||||||
BMessage replyMsg(B_REPLY);
|
BMessage replyMsg(B_REPLY);
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user