Page 1 of 1

wxStyledTextCtrl TAB key ignored on Linux

Posted: Sat Apr 25, 2020 9:14 pm
by cutecode
I compyled STC example on Linux.
After opening file stctest.cpp and pressing TAB key, nothing happens.
Can I somehow change this behaver?

I do the same on Windows, and TAB do inserted.

Re: wxStyledTextCtrl TAB key ignored on Linux

Posted: Sun Apr 26, 2020 12:37 am
by ONEEYEMAN
Hi,
Do you mean the cursor is not moving?
Or the TAB character is not being displayed?

Also - what is you exact GTK+ version?

Thank you.

Re: wxStyledTextCtrl TAB key ignored on Linux

Posted: Sun Apr 26, 2020 1:59 am
by cutecode
)))) cursor not moving

GTK 2

Re: wxStyledTextCtrl TAB key ignored on Linux

Posted: Sun Apr 26, 2020 5:08 am
by New Pagodi
I'm not sure what, but there is some setting that makes the tab key not work on linux. You can see it in the stc sample: the tab key does not work in the main frame but it does work with the mini editor frame. Also the tab key works if you create a plain stc without any configuration at all.

I would guess that you applying the same setting that causes the tab key to stop working in the sample. But I'm not sure which setting that is.

Re: wxStyledTextCtrl TAB key ignored on Linux

Posted: Sun Apr 26, 2020 10:29 am
by cutecode
hello.
I searched the source and commented this line

Code: Select all

	//CmdKeyClear(wxSTC_KEY_TAB, 0); // this is done by the menu accelerator key
Now the cursor moves

THX