CudaText icon indicating copy to clipboard operation
CudaText copied to clipboard

macOS: no caret visible until focus is changed, Options Editor Lite

Open Alexey-T opened this issue 3 years ago • 9 comments
trafficstars

by @veksha - In 'Options Editor Lite' Filter field has no caret until you change focus to another control and back.

Alexey-T avatar Jul 31 '22 13:07 Alexey-T

@veksha I suspect that my control don't get the OnEnter event on showing of the dialog. let's test simple demo on Mac. FYI: in the Project options, you can find the button "Create appliation bundle" in MacOS settings. do it.

tst-cocoa-OnEnter.zip

it shows Form1, press the button - it will show Form2. Give the screenshot of Form2 after show - I want to see 'OnEnter' text in the first input.

gtk2 works ok: tst-gtk2

Alexey-T avatar Aug 02 '22 12:08 Alexey-T

image

veksha avatar Aug 02 '22 12:08 veksha

FYI: in the Project options, you can find the button "Create appliation bundle" in MacOS settings. do it.

what does it do? I don't know what is application bundle.

veksha avatar Aug 02 '22 12:08 veksha

'application bundle' is a folder with extentsion .app - macOS treats it as exe-file. OK, app-bundle is not needed if you already run it.

modified demo - now witth ATSynEdit! tst-OnEnter2.zip

  • first input shows 'OnEnter'?
  • caret is blinking in it?

Alexey-T avatar Aug 02 '22 12:08 Alexey-T

  • first input shows 'OnEnter'?
  • caret is blinking in it?

yes / yes

PS: I don't know if it is a bug or what. in CudaText(in macos) I don't remember such glitch. it happens on clicking:

Peek 2022-08-02 16-31.webm

veksha avatar Aug 02 '22 13:08 veksha

OK, app-bundle is not needed if you already run it.

running through Lazarus, (installed fpc lldb debugger package)

veksha avatar Aug 02 '22 13:08 veksha

Now I am puzzled why demo works good, and OptionsEditor has no blinking.

Alexey-T avatar Aug 02 '22 13:08 Alexey-T

maybe because it is combo box?

veksha avatar Aug 02 '22 13:08 veksha

tested with atcomboedit, no issue.

veksha avatar Aug 02 '22 13:08 veksha

last months, i made some fixing for OnEnter for Mac. seems it helped here too. i cannot replicate this bug on 1.183 on macOS 10.11. solved.

@veksha you posted videos with bad black BkGnd of edit controls. pls check it again and make a new issue.

Alexey-T avatar Feb 07 '23 14:02 Alexey-T