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 572307 - N,M,S and T invoke commands in edit mode
N,M,S and T invoke commands in edit mode
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
devel
Other All
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
: 578256 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-18 18:43 UTC by Steffen Macke
Modified: 2009-04-07 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steffen Macke 2009-02-18 18:43:13 UTC
Reported by Mark Dexter on the mailing list

1. Add a flow chart shape and enter some text.
2. Click on the canvas to deselect the shape.
3. Click on the shape and press F2 to start Edit Text mode. If you enter text other than N,M,S, T and other letters on the Tools menu, you start entering text in the selected shape. However, if you enter any of the letters for Tools menu commands, you invoke that command.

Expected result: Text entry of N,M,S,T...
Comment 1 Hans Breuer 2009-02-28 19:44:47 UTC
works for me - at least with the classic UI
Comment 2 Steffen Macke 2009-03-01 08:53:12 UTC
True - the bug  only appears when using the integrated UI.
Is there a particular reason why integrated UI and classic UI behave different when it comes to key bindings?
Comment 3 Hans Breuer 2009-03-01 14:44:53 UTC
one reason to make them different are the different code pathes used for the menu code. But here it may be a problem with your build - at least I can not reproduce it with the integrated UI, neither on Linux nor on Windows.
Can you still reproduce it with a clean build?
Comment 4 Steffen Macke 2009-03-01 18:28:58 UTC
It gets even stranger: In my Linux build I could now reproduce it even with the classic UI.
Comment 5 Hans Breuer 2009-03-07 00:06:32 UTC
the important information I did not find by reading this bug report but by playing a little longer: apparently the N,M,S and T must be the first letter after entering the text edit mode. But even that seems to be not enough for 100% reproducability. 

Note: the same effect should also be visible with A,B,C,E,I,L,O,P,R and Z because they are also single letter shortcuts, but I finally found the reason:

2009-03-07  Hans Breuer  <hans@breuer.org>

	* app/textedit_tool.c : ensure the action sensitivity is updated after
	entering textedit mode. No tool activation by entering text, bug #572307

Comment 6 Hans Breuer 2009-04-07 21:00:14 UTC
*** Bug 578256 has been marked as a duplicate of this bug. ***