keyman icon indicating copy to clipboard operation
keyman copied to clipboard

bug(windows): Keyboard configuration option does not change for active window.

Open rc-swag opened this issue 3 years ago • 1 comments

Describe the bug With the IPA SIL Keyboard installed changing the option from "Before" to "After". The change does not occur for the active app ie notepad. Opening a new app will take the new configuration. Or even closing and opening the same app.

This issue was identified when testing PR #5959 which addressed issue #5951 To Reproduce This test requires IPA (SIL) keyboard to be installed Step 1. Open notepad and check the behaviour of type "e>" or ">e". Depending on the current keyboard setting one of these options will give a "ɜ". Step 2. Go to Keyman Configuration, select the IPA (SIL) keyboard, click on Keyboard options and choose Before. You may need to exit Keyman configuration before the default behaviour changes. Step 3. Go back to Notepad, and observe that the "before" "after" change to configuration has not been applied.

Expected behavior The configuration should have been applied to the current notepad instance.

Keyman for Windows: Windows 10 x64, 15 alpha

Keyboard

  • Keyboard name: IPA (SIL)

rc-swag avatar Nov 26 '21 03:11 rc-swag

When the configuration changes there needs to be a call to the Keyman Engine to LoadOptionsCore. New apps get the options because LoadOptionsCore is called.

I need to investigate how TfrmKeyboardOptions.FireCommand results in the Windows Registry being updated and if there is anyway I can get the Keyman32 to call LoadOptionsCore at this point

rc-swag avatar Oct 06 '22 07:10 rc-swag