After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309659 - Hitting ESC should cancel tool operations in progress
Hitting ESC should cancel tool operations in progress
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: Normal enhancement
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-07 01:42 UTC by Nathan Summers
Modified: 2012-08-25 22:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nathan Summers 2005-07-07 01:42:35 UTC
As discussed on IRC, hitting ESC should cancel in-progress tool operations just
like the right-click method does.
Comment 1 weskaggs 2005-07-07 17:35:38 UTC
This already happens for some (many?) tools, so the bug report would be more
helpful if supplemented with a list of tools for which it currently doesn't work.
Comment 2 Nathan Summers 2005-07-07 17:38:37 UTC
Dragging the selection with the fuzzy select tool was the example that was
reported in the channel.  There are probably others.
Comment 3 Sven Neumann 2005-07-07 20:29:52 UTC
It would be nice to be able to cancel selection and paint tools using the Escape
key.
Comment 4 Michael Schumacher 2006-02-23 23:53:04 UTC
*** Bug 113564 has been marked as a duplicate of this bug. ***
Comment 5 Michael Schumacher 2006-06-13 10:09:14 UTC
Cancel with Escape works for the new selection and crop tools.
Comment 6 Michael Natterer 2006-06-13 11:15:14 UTC
Cancel with escape worked before. This bug is about being able to
press ESC while *mouse button 1 is down*. This needs new infrastructure
and should probably not be tried before 2.4

Comment 7 Michael Schumacher 2006-06-13 11:30:32 UTC
Works while mouse button 1 is down, too - at least on Windows. It does not work for the old select tools at all.

IMO the new behaviour is "just like the right-click method". If this report is about a different behaviour, it should be more precise about it.
Comment 8 Michael Natterer 2006-06-13 12:14:52 UTC
That "new behavior" is a definitive Win32 GDK bug then. Tools are currently
not designed to receive any key events while mouse button 1 is pressed.

Comment 9 Tor Lillqvist 2006-06-13 12:59:16 UTC
I can't reproduce the problem on Win32. Pressing ESC while dragging out a crop rectangle does nothing. I tested with both GTK+ 2.8.18 and 2.8.9.
Comment 10 Michael Schumacher 2006-06-13 13:22:22 UTC
The "right-click method" as observed on my system is:

- drag the selection tool with left button
- click and hold right mouse button
- release left button
=> selection is cancelled

The behaviour I see with the new select tools and Esacpe is:

- drag the selection tool with left button
- hold escape key
- release left button
=> selection is cancelled
Comment 11 Michael Natterer 2006-06-13 13:56:22 UTC
Ah, you are seeing something entirely different here:

- hold MB3 while releasing MB1 -> cancel *this drag* only
  (try resizing an already existing rectangle)

- pressing escape while releasing MB1 -> cancel the entire tool
  (this is 100% the same as releasing MB1 and *then* hitting Esc)

Nothing weird going on, move along :)
Comment 12 Michael Natterer 2012-08-25 22:59:40 UTC
AFAICS this is the case for all tools now, if not, please open individual
bugs for the tools where it doesn't work.