wxStyledTextCtrl TAB key ignored on Linux Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 332
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxStyledTextCtrl TAB key ignored on Linux

Post by cutecode » Sat Apr 25, 2020 9:14 pm

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.
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4360
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxStyledTextCtrl TAB key ignored on Linux

Post by ONEEYEMAN » Sun Apr 26, 2020 12:37 am

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.

User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 332
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxStyledTextCtrl TAB key ignored on Linux

Post by cutecode » Sun Apr 26, 2020 1:59 am

)))) cursor not moving

GTK 2
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 352
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: wxStyledTextCtrl TAB key ignored on Linux

Post by New Pagodi » Sun Apr 26, 2020 5:08 am

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.

User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 332
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxStyledTextCtrl TAB key ignored on Linux

Post by cutecode » Sun Apr 26, 2020 10:29 am

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
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

Post Reply