c# - Virtual keyboard opens automatically when closing charms/settings -


my application uses virtual keyboard. keyboard becomes hidden when charms bar opened, reappear when charms bar closed. want control whether reappears or not.

my program has several folders editable files, , virtual keyboard used edit files. in charm bar's 'settings' selection i've added control on folders/files displayed. problem occurs when user has virtual keyboard open while editing file, goes charms bar disable folder that file in. i've coded things such file closed when happens, once user closes charms keyboard automatically reopen... , let user keep typing , altering data! can finagle file re-open while folder disabled!

i have read several other questions of similar nature, none of them have added element of charm bar. think windows 8 makes note or flags virtual keyboard reopen when open charm bar while keyboard up, , telling keyboard close doesn't touch flag (and anyway can't tell close @ point when it's closed).

if can figure out how handle hypothetical flag, or instead code execute after keyboard reopens, can rest of work. advice?

update:

i found work-around: keyboard input goes through filter checks if folder/file still active, else ignore input. not perfect serviceable needs. original question remains unanswered.

while not know of way activate code when charms bar closes, sufficient close keyboard before opens, , therefore not set reopen after using charms bar.

this achieved adding initializer:

window.current.activated += current_activated; 

and writing method:

private void current_activated(object sender, windows.ui.core.windowactivatedeventargs e) 

as how lose focus after triggering method, suggest looking here.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -