- writer file with header - cursor in header - use 'properties'key (e.g: for 'Edit paragraph style') > cursor leaves the header/footer, goes to the last paragraph in the page and shows the context menu there
Cant reproduce this on 3.5.0-2ubuntu1 vendor build or -3-5 branchoff (85c6244b85b29c1d2bb9d89b62e9512dd65378b5) -- no inappropriate cursor movement. What do you mean with 'use properties key' mean? I take it as right click for context menu.
(In reply to comment #1) > Cant reproduce this on 3.5.0-2ubuntu1 vendor build or -3-5 branchoff > (85c6244b85b29c1d2bb9d89b62e9512dd65378b5) -- no inappropriate cursor movement. 351rc1 still shows the bug. > What do you mean with 'use properties key' mean? I take it as right click for > context menu. Right from my space bar, there is first AltGr, then the properties key, then Ctrl and so on. The icon on the key shows a drop down list.
this is a regression from a6176612ff1a6a142a68964b2c0834d28125fc45. apparently the problem is that when pressing the "context menu" key VCL generates a COMMAND_CONTEXTMENU command, with a cursor position that is centered on the entire window, hence likely to be in the document body. the lcl_CheckHeaderFooterClick function, called from SwEditWin::Command, then sets the document's cursor to the synthetic mouse cursor position.
so i've found that the event has a flag if it's an actual mouse event, seems checking for that fixes it
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=87279e0e812bac7f2c17f2758a39bcfd942214af fdo#45962: fix context menu key yanking cursor out of header/footer
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e73ae4363b55dd544184be1c938f7103f0e64ee3&g=libreoffice-3-5 fdo#45962: fix context menu key yanking cursor out of header/footer It will be available in LibreOffice 3.5.2.
Ah, great - works fine again - thanks