Recent

Author Topic: Entering a TAB when WantTabs is False in a Memo (Linux)  (Read 1106 times)

fedkad

  • Full Member
  • ***
  • Posts: 176
Entering a TAB when WantTabs is False in a Memo (Linux)
« on: December 27, 2017, 01:21:17 pm »
When you have multiple controls on a Form including a Memo that has WantTabs False and you are within the Memo, pressing the TAB key will move you to the next control because as explained in the Help text for WantTabs:

Quote
The Tab key is normally used to move the focus to the next control, so that it cannot be used to add Tabs to the text.
When WantTabs is True, the Tab key inserts a Tab character into the text, instead of moving the focus to then next control.
Even if WantTabs is True, the user can Tab into the control, but not out again.

But, I know from Windows that there is a method to add a tab character to Memo text (when WantTabs is False) and this is by pressing CTRL+TAB. However, this method does not work in Linux: pressing CTRL+TAB, SHIFT+TAB, CTRL+SHIFT+TAB will always move you out of the Memo. Is there any other way to enter a Tab character (except pasting text containing Tab of course)?

Note: In Linux when you set you set WantTabs to True, there is a way to exit from Memo and this is CTRL+TAB. It would be nice (and compatible to Windows) if it was the other way around when WantTabs is set to False.

Platform: Ubuntu 17.10 + Lazarus 1.8.0 (64-bit)
Lazarus 2.2.6 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

 

TinyPortal © 2005-2018