Bug 151132 - Pressing F2 with the mouse over a Text Box will unexpectedly select the text on mouse move
Summary: Pressing F2 with the mouse over a Text Box will unexpectedly select the text ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2022-09-22 13:55 UTC by Rafael Lima
Modified: 2023-07-19 20:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Video showing the problem (797.93 KB, video/mp4)
2022-09-22 13:55 UTC, Rafael Lima
Details
Sample ODP file used in the video (32.40 KB, application/vnd.oasis.opendocument.presentation)
2022-09-22 13:55 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-09-22 13:55:20 UTC
Created attachment 182625 [details]
Video showing the problem

See attached video for more details.

Suppose you have a Text Box (or a shape with text inside). Now follow these steps:
1) Select the Text Box (or shape) so that only the object is selected and the cursor is not blinking for text editing. In the video I clicked the Text Box and after the cursor started blinking, I pressed Esc
2) Place the mouse pointer over the text box
3) Press F2 to start editing the text; do not press any other keys
4) Now move the mouse
5) Notice the text will be selected when you move the mouse; here, moving the mouse should have no effect. We should only have the text cursor available for editing and moving the mouse should not select anything
6) Now click outside the text box
7) From now on, each time you click the slide a new text box will be created; this shouldn't happen

I have been experiencing this bug for a long time, but it was hard to figure out how to reproduce it. The key to reproduce this bug is to have the mouse over the text box when F2 is pressed. If the mouse is not over the text box, then all is ok.

System info

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 1 Rafael Lima 2022-09-22 13:55:55 UTC
Created attachment 182626 [details]
Sample ODP file used in the video
Comment 2 Rafael Lima 2022-09-22 13:59:23 UTC
This bug is fully reproducible in "gen" and "kf5".

In gtk3 the issues in steps (6) and (7) do not happen (the multiple creation of text boxes).
Comment 3 Mike Kaganski 2022-09-22 14:23:26 UTC
Repro using Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

It is important that the cursor is not only over the text box, but also over the text itself (so that it turns into a I shape) to repro. Pressing F2 when the mouse cursor is over the box, but outside of the text (e.g., in the bottom part) would not trigger it.
Comment 4 Mike Kaganski 2022-09-22 14:26:31 UTC
Also repro using OOo 3.2.0.