DelphiFMX4Python icon indicating copy to clipboard operation
DelphiFMX4Python copied to clipboard

Edit not accepting keyboard input

Open masoodimran opened this issue 3 years ago • 2 comments

Hi,

I have being trying the Delphi FMX examples on my macbook pro (intel). While button clicks work perfectly, the Edit box is not accepting the characters I type on my keyboard. What ever I type does not show in the Edit box but instead on other open windows.

I am trying to run the ToDoList.py example on my local machine

https://user-images.githubusercontent.com/30685384/165887967-57f20980-e622-4994-8c15-611e28f78c43.mov

.

masoodimran avatar Apr 29 '22 05:04 masoodimran

Hi @masoodimran,

Thank you for your report. I will investigate this case.

lmbelo avatar Apr 29 '22 13:04 lmbelo

@masoodimran, Have a look at the following trick I set on the following script:

https://github.com/Embarcadero/DelphiFMX4Python/blob/61013f96c5603c8adabdb547cbbb9df9cf994e18/samples/ControlsDesktop/controlsdemo.py?plain=1#L259

I once saw this same issue, but I didn't have a chance to fix it out. Try the following:

  1. Define the OnFocusChanged event as above
  2. Assign the defined event to the OnFocusChanges event property of your main form

Let me know if it does the trick.

lmbelo avatar Jun 02 '22 03:06 lmbelo