You was right, reaction on arrows, pageUp/Down and also wheel work without any problems. My problem is that my Plugin has opened window with Indesign document and also dialog window with listBox. When I click on my ListBoxItem, there is in observer reaction that mark part of document with this method calling: textSelectionSuite->SetTextSelection(storyRef, rangeData, Selection::kScrollIntoView, nil); This selectin set selection(focus) to Indesign window, please how could I set back active focus to my dialog window & ListBox ? Thank you
IPanelControlData-> SetKeyboardFocus(). To get the window back to the front, you may have to write platform specific code, but look at IPanelMgr - I'm not sure that dialogs are part of the window list.
Anyway what you are doing sounds more to me like something that should be on a panel. Or perhaps you should collect the selections the user does in your listbox and apply them, when the dialog is close. This way you can also get a Cancel button on your dialog. Just suggestions ....