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:
@@ -89,8 +89,10 @@ void ToolBar::setTool (ToolMode tool) {
|
|||||||
cropTool->set_active (false);
|
cropTool->set_active (false);
|
||||||
straTool->set_active (false);
|
straTool->set_active (false);
|
||||||
|
|
||||||
if (tool==TMHand)
|
if (tool==TMHand){
|
||||||
handTool->set_active (true);
|
handTool->set_active (true);
|
||||||
|
handTool->grab_focus();; // switch focus to the handTool button
|
||||||
|
}
|
||||||
else if (tool==TMSpotWB)
|
else if (tool==TMSpotWB)
|
||||||
wbTool->set_active (true);
|
wbTool->set_active (true);
|
||||||
else if (tool==TMCropSelect)
|
else if (tool==TMCropSelect)
|
||||||
|
Reference in New Issue
Block a user