Author Topic: Incremental Search text box selects itself  (Read 2328 times)

Offline roody2dgame

  • Single posting newcomer
  • *
  • Posts: 4
Incremental Search text box selects itself
« on: July 25, 2023, 09:05:22 pm »
Code::Blocks Release 20.03  rev 11997 Jul 12 2022, 21:44:09 - wx3.2.0 - gcc 12.1.0 (Linux, unicode) - 64 bit

I press CTRL+I or click in the incremental search test box
I press a key, lets say 'h'
the 'h' instantly gets selected for some reason?
since the 'h' is selected, my next keystroke, 'e', replaces the selected text
only 'e' is in the incremental search text box
the 'e' instantly gets selected for some reason?

so casually typing "heebeegeebeez", every key will replace the last letter, leaving only 'z' in the text box
i can get around this by manually deselecting the text every keystroke, so
"h (right arrow) e (right arrow) e (right arrow) b (right arrow) e (right arrow) e (right arrow) g (right arrow) e (right arrow) e (right arrow) b (right arrow) e (right arrow) e (right arrow) z"
but this is tedious to do

How do I stop this behavior? Is it a bug?
I've tried toggling INSERT and all the Incremental Search options (cleared box, used regex to search for something that doesn't match itself, highlight on/off), nothing helps.

Offline roody2dgame

  • Single posting newcomer
  • *
  • Posts: 4
Re: Incremental Search text box selects itself
« Reply #1 on: July 25, 2023, 09:10:00 pm »
System Context:
OS: Arch Linux x86_64
WM: KWin
DE: KDE
The only settings I've changed for code::blocks is change some colors and remove some of the toolbars I don't use, then save the removal of toolbars as the "Code::blocks default" perspective
The textbox for thread-search works perfectly normally
I have a pretty fast setting for holding down a key to repeat it (200ms delay, 30ms repeat)

Offline pirx67

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: Incremental Search text box selects itself
« Reply #2 on: August 19, 2023, 12:23:51 am »
Hi,

I can confirm this behavior. My system is a Debian 12 bookworm with this Code::Blocks revision:

Name                   : Code::Blocks
Version                : svn-r13338
SDK Version            : 2.24.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : https://www.codeblocks.org
OS                     : Linux 6.1.0-11-rt-amd64 x86_64
Scaling factor         : 1.000000
Detected scaling factor: 1.000000
Display PPI            : 96x96
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,1200]; Primary

wxWidgets Library (wxGTK port)
Version 3.2.2 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.36.