Posted by: RTT
« on: August 23, 2016, 02:21:30 AM »Actually, both the internal viewer and PDFe starts responding after the ALT keypress. But it is still ambiguous how it responds because I've noticed couple times other reactions. So I guess it doesn't help much.I've now added some code to get focus back to PDFE when the main menu gets active, so the ALT key can now reliably be used to do that. Still not the best solution.
Quote
Have you tried to disable the viewer control while it is loading (set component property to disabled), then on click or a timer to enable it so it would get back as focusable? This might work. Maybe it is possible to do the same trick with each keypress, so that you could capture them with PDFe?The problem is that the user might indeed want to get the reader focused, just after document is loaded, so it can changes pages, etc.
The alt key trick is working now, and leaving the mouse pointer over the grid worked since ever. Probably a globally hooked hotkey, specific to get the focus back to PDFE, is the way to go. The alt key trick needs two clicks, one to get the focus and another to exit the menu and get back the focus to the previously focused control.