From 38b8fcb14c1c58738645213a0dcb526924d472b6 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 16 Jun 2011 06:54:59 -0400 Subject: [PATCH] Small fix for handTool. handTool button gets focus when tool is selected (e.g. image area is right-clicked). This allows to switch focus from entry boxes if one needs to use shortcuts. Otherwise shortcuts are typed inside the entry boxes. --- rtgui/toolbar.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtgui/toolbar.cc b/rtgui/toolbar.cc index 309fc49c0..65b765b9d 100644 --- a/rtgui/toolbar.cc +++ b/rtgui/toolbar.cc @@ -89,8 +89,10 @@ void ToolBar::setTool (ToolMode tool) { cropTool->set_active (false); straTool->set_active (false); - if (tool==TMHand) + if (tool==TMHand){ handTool->set_active (true); + handTool->grab_focus();; // switch focus to the handTool button + } else if (tool==TMSpotWB) wbTool->set_active (true); else if (tool==TMCropSelect)