mirror of https://github.com/GNOME/gimp.git
Cage tool: in cage mode, remove selected handles when hitting backspace
This commit is contained in:
parent
bcd76a3d5b
commit
cc247b3e66
|
@ -398,7 +398,17 @@ gimp_cage_tool_key_press (GimpTool *tool,
|
|||
{
|
||||
case GDK_KEY_BackSpace:
|
||||
if (! ct->cage_complete && ct->tool_state == CAGE_STATE_WAIT)
|
||||
gimp_cage_tool_remove_last_handle (ct);
|
||||
{
|
||||
gimp_cage_tool_remove_last_handle (ct);
|
||||
}
|
||||
else if (ct->cage_complete && ct->tool_state == CAGE_STATE_WAIT)
|
||||
{
|
||||
gimp_cage_config_remove_selected_points(ct->config);
|
||||
|
||||
/* if the cage have less than 3 handles, we reopen it */
|
||||
if (gimp_cage_config_get_n_points(ct->config) <= 2)
|
||||
ct->cage_complete = FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
case GDK_KEY_Return:
|
||||
|
|
Loading…
Reference in New Issue