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.
This commit is contained in:
michael
2011-06-16 06:54:59 -04:00
parent 24a692351b
commit 38b8fcb14c

View File

@@ -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)