himselfv / wakan

Japanese and Chinese learning tool with dictionary
39 stars 7 forks source link

Keyboard shortcuts work even from service windows, when main form is not loaded #182

Closed himselfv closed 11 years ago

himselfv commented 11 years ago

Original report by me.

Originally reported on Google Code with ID 182

Run wakan.exe makechars /resetdb /kanjidic KANJIDIC
When asked to select codepage, press F7, F8 or F9, observe Access Violation because
Wakan tries to react to keyboard shortcut while Main Form is not yet close to being
loaded.

Keyboard shortcuts should only start working when Main form becomes visible.

Reported by himselfv on 2013-06-09 20:40:15

himselfv commented 11 years ago
Fixed @r626 by disabling the main form for the time of initialization.
The reason was that shortcut went to the TApplication which gives it to main form.
It seems that when some other form is active, main form is disabled so shortucts don't
work (good).

Reported by himselfv on 2013-06-18 07:39:42