when using enter or space to invoke a button, have the button snooze a mikrod to make sure the visuals get across

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14930 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-11-15 01:27:37 +00:00
parent db3c2e1e8e
commit e1d08bc65b
+6 -1
View File
@@ -427,8 +427,13 @@ BButton::KeyDown(const char *bytes, int32 numBytes)
return;
SetValue(B_CONTROL_ON);
// make sure the user saw that
Window()->UpdateIfNeeded();
snooze(25000);
Invoke();
} else
BControl::KeyDown(bytes, numBytes);
}