From 45912b67a3bcba20ed6a17d6e2f3d0d7ffec923d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 21 Feb 2010 21:59:27 +0000 Subject: [PATCH] Patch by idefix that fixes scrolling the keymap list to the current entry when the window is first opened. Thanks! Fixes #5445. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35570 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/readonlybootprompt/BootPromptWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/readonlybootprompt/BootPromptWindow.cpp b/src/apps/readonlybootprompt/BootPromptWindow.cpp index d78c202d7b..3cb4d96380 100644 --- a/src/apps/readonlybootprompt/BootPromptWindow.cpp +++ b/src/apps/readonlybootprompt/BootPromptWindow.cpp @@ -130,6 +130,10 @@ BootPromptWindow::BootPromptWindow() ) ); + // This call in the first _PopulateKeymaps had no effect yet, since the + // list wasn't attatched to the window yet. + fKeymapsListView->ScrollToSelection(); + CenterOnScreen(); Show(); }