From e1d08bc65b225d65042c662f1267ca5a2b029ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 15 Nov 2005 01:27:37 +0000 Subject: [PATCH] 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 --- src/kits/interface/Button.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Button.cpp b/src/kits/interface/Button.cpp index 49053cf65d..ce7b63c19f 100644 --- a/src/kits/interface/Button.cpp +++ b/src/kits/interface/Button.cpp @@ -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); }