Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Favorites focus

Open ProgerXP opened this issue 8 years ago • 2 comments
trafficstars

I have previously mentioned this: when bringing up Favorites (Alt+I) and quickly pressing a key to select an item in the list, OK button sometimes remains disabled as if no item was selected. You said it wasn't easy to fix because it likely is a Windows/control issue, not Notepad's. But there must be some easy workaround.

As far as I understand, there is a time gap between dialog appearing on screen and its list receiving keystroke events. I mean, first the dialog is constructed and displayed, and then later a handler for the list events is registered which handles enabling/disabling of the OK button (which is initially disabled).

If it's the case, why the handler is created so late? Why this noticeable delay?

In any case, it must be possible to simply detect current (selected) list item after adding the handler and manually enabling OK if it's non-empty, right?

ProgerXP avatar Dec 09 '16 07:12 ProgerXP

Unfortunately, I was unable to reproduce the issue. Please provide the video to address your exact case.

cshnik avatar Dec 21 '16 17:12 cshnik

This was actually fixed a long ago. Please find the issue or commit where this was made and post here, for historical records.

ProgerXP avatar Nov 27 '21 20:11 ProgerXP

Addressed in #240, https://github.com/ProgerXP/Notepad2e/commit/2230b20a3b2c02efac611744a2dd787b212365f1.

cshnik avatar Aug 30 '22 16:08 cshnik