Recent

Author Topic: Left and right arrow keys do not work in TValueListEditor  (Read 1998 times)

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
Left and right arrow keys do not work in TValueListEditor
« on: November 24, 2015, 11:39:24 pm »
When editing a text in TValueListEditor, the left and right key move from one cell to the other instead of moving by a character. I've looked at all the options and failed to notice the option that can modify this behavior.

Could someone please point me in the right direction?

Thanks!

Lazarus 1.4.4
Windows 10

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Left and right arrow keys do not work in TValueListEditor
« Reply #1 on: November 24, 2015, 11:56:48 pm »
Please open a bugreport in the bugtracker, otherwise it will be forgotten.

Bart

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
Re: Left and right arrow keys do not work in TValueListEditor
« Reply #2 on: November 25, 2015, 12:00:27 am »
Oh wow, i didn't know it was actually a bug!
I'll do so. Thanks for letting me know.
Egan.

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Left and right arrow keys do not work in TValueListEditor
« Reply #3 on: November 25, 2015, 12:51:47 am »
It's cause by the fact ValEdit sets EO_HOOKKEYDOWN in EditorOptions whenever an Editor is created.
Thiis is needed because otherwise Ctrl+Del will not be passed to the StringGrids KeyDown an we will never see that key combination (which we must act upon).

The downside, as it now appears, is that with EO_HOOKKEYDOWN, the StringCellEditor now has an OnKeyDown event: TCustomGrid.EditorKeyDown. This procedure then handles the left and right arrow by moving to the left or right cell...

I'm unsure if this is intended to work like that, Jesus Reyes should know.

Bart

 

TinyPortal © 2005-2018