Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

F2 sometimes does not make label editable

+1 vote
I have often been running into a peculiar issue in the recent months. I create a node/edge and then press F2 to give it a label. The textbox appears but typing on my keyboard does nothing. I need to de-select the item, select it again, press F2 again and only then can type.

Seems to happen completely randomly, maybe once every 20 times I press F2 to edit a label. I have not been able to narrow it down to any specific conditions.

Please advise on whether I may be doing something wrong or if this is a defect.
asked Jan 11, 2016 in Help by anonymous
I have collected Spy++ logs of the window messages of the yEd window, both in case of failure and success.

The success case begins with me pressing F2 and ends with me typing the character "9". This character appears in the textbox.

The failure case beings with me pressing F2 and ends with me typing the capital letter V (Shift+V). This character does not appear in the textbox.

Does this information help?

--- SUCCESS ---

<000506> 0000000000150D28 P WM_KEYDOWN nVirtKey:VK_F2 cRepeat:1 ScanCode:3C fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<000507> 0000000000150D28 P WM_KEYUP nVirtKey:VK_F2 cRepeat:1 ScanCode:3C fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<000508> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000000 lParam:00000000
<000509> 0000000000150D28 S WM_KILLFOCUS hwndGetFocus:(null)
<000510> 0000000000150D28 R WM_KILLFOCUS
<000511> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<000512> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<000513> 0000000000150D28 R WM_IME_SETCONTEXT
<000514> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<000515> 0000000000150D28 R WM_IME_SETCONTEXT
<000516> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<000517> 0000000000150D28 R WM_IME_SETCONTEXT
<000518> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<000519> 0000000000150D28 R WM_IME_SETCONTEXT
<000520> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000001 lParam:00000000
<000521> 0000000000150D28 S WM_SETFOCUS hwndLoseFocus:(null)
<000522> 0000000000150D28 R WM_SETFOCUS
<000523> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<000524> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2B674E10
<000525> 0000000000150D28 P WM_KEYDOWN nVirtKey:'9' cRepeat:1 ScanCode:0A fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<000526> 0000000000150D28 P WM_CHAR chCharCode:'57' (57) cRepeat:1 ScanCode:0A fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<000527> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2B674E10
<000528> 0000000000150D28 P WM_KEYUP nVirtKey:'9' cRepeat:1 ScanCode:0A fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<000529> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2B674E10

--- END SUCCESS ---

--- FAILURE ---

<001338> 0000000000150D28 P WM_KEYDOWN nVirtKey:VK_F2 cRepeat:1 ScanCode:3C fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<001339> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000000 lParam:00000000
<001340> 0000000000150D28 S WM_KILLFOCUS hwndGetFocus:(null)
<001341> 0000000000150D28 R WM_KILLFOCUS
<001342> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<001343> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<001344> 0000000000150D28 R WM_IME_SETCONTEXT
<001345> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<001346> 0000000000150D28 R WM_IME_SETCONTEXT
<001347> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<001348> 0000000000150D28 R WM_IME_SETCONTEXT
<001349> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<001350> 0000000000150D28 R WM_IME_SETCONTEXT
<001351> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000001 lParam:00000000
<001352> 0000000000150D28 S WM_SETFOCUS hwndLoseFocus:(null)
<001353> 0000000000150D28 R WM_SETFOCUS
<001354> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<001355> 0000000000150D28 P WM_KEYUP nVirtKey:VK_F2 cRepeat:1 ScanCode:3C fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<001356> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000000 lParam:00000000
<001357> 0000000000150D28 S WM_KILLFOCUS hwndGetFocus:(null)
<001358> 0000000000150D28 R WM_KILLFOCUS
<001359> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<001360> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<001361> 0000000000150D28 R WM_IME_SETCONTEXT
<001362> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<001363> 0000000000150D28 R WM_IME_SETCONTEXT
<001364> 0000000000150D28 S WM_IME_SETCONTEXT fSet:0 iShow:C000000F
<001365> 0000000000150D28 R WM_IME_SETCONTEXT
<001366> 0000000000150D28 S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<001367> 0000000000150D28 R WM_IME_SETCONTEXT
<001368> 0000000000150D28 S message:0x9806 [User-defined:WM_APP+6150] wParam:00000001 lParam:00000000
<001369> 0000000000150D28 S WM_SETFOCUS hwndLoseFocus:(null)
<001370> 0000000000150D28 R WM_SETFOCUS
<001371> 0000000000150D28 R message:0x9806 [User-defined:WM_APP+6150] lResult:00000000
<001372> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2A808BC0
<001373> 0000000000150D28 P WM_KEYDOWN nVirtKey:VK_SHIFT cRepeat:1 ScanCode:36 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<001374> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2A808BC0
<001375> 0000000000150D28 P WM_KEYDOWN nVirtKey:'V' cRepeat:1 ScanCode:2F fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<001376> 0000000000150D28 P WM_CHAR chCharCode:'86' (86) cRepeat:1 ScanCode:2F fExtended:0 fAltDown:0 fRepeat:0 fUp:0
<001377> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2A808BC0
<001378> 0000000000150D28 P message:0x980F [User-defined:WM_APP+6159] wParam:00000056 lParam:002F0001
<001379> 0000000000150D28 P WM_KEYUP nVirtKey:VK_SHIFT cRepeat:1 ScanCode:36 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<001380> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2A808BC0
<001381> 0000000000150D28 P WM_KEYUP nVirtKey:'V' cRepeat:1 ScanCode:2F fExtended:0 fAltDown:0 fRepeat:1 fUp:1
<001382> 0000000000150D28 P message:0x9809 [User-defined:WM_APP+6153] wParam:00000000 lParam:2A808C00


--- END FAILURE ---
Thank you for posting the log!

1 Answer

0 votes
From your description it seems the text box loses focus. Very hard to tell why that would happen.
What version of yEd are you using?
What version of Java are you running yEd on?
What operating system are you running yEd on?
answered Jan 11, 2016 by thomas.behr [yWorks] (125,530 points)
yEd 3.14.4
Java 1.8.0_60
Windows 10 Enterprise, with all latest updates

It seems to happen more often as yEd is open longer but given the low rate of it occurring, perhaps this is just an error in my perception. Please let me know if there is any other useful information I can provide to help understand the case.
Thank you very much for the additional information. This is all we need to know to start looking for the problem.
I have found an additional correlation here! When this happens, the mouse is always the "Finger" icon! The one that shows up when you hover over a connector. I am still not able to reliably reproduce the issue but this factor seems to be a constant.
Hello! I'm having the same problem, but with a few different parameters.

yEd version 3.15.0.2, Java version 1.8.0_74, running on windows 7.

For me, there is no correlation to the "Finger" icon as anon mentioned.

This feels like it might be two separate problems.
The first problem is that, when I select an element, it takes about half a second to populate the Neighborhood and Properties windows. That wouldn't be a problem, except that F2 (Edit Label) is entirely ignored until they populate.
The second problem is basically as described above: Sometimes pressing F2 causes the text box to appear, but without highlighting the contents or making the cursor appear. After this happens, the arrow keys cause the selection to move to another element, rather than moving the cursor within the text box.

I notice a peculiar behavior *most* of the time when this happens. The text box becomes momentarily highlighted, then goes back to its un-highlighted white color. (This makes me suspect a race condition, or maybe a late input event is screwing things up.)

I'd be happy to test this further. This program is fantastic, and this bug is slowing me down bigtime. Thanks.
Imprint | Privacy Policy