Hi all,
I'm having a small issue with an app I'm building and am hoping someone can point me in the right direction for a solution. The problem I'm having relates only to desktop environments (i'm on a mac but, I assume, windows and linux would also have the same behavior.)
I am using a revBrowser control to display various web pages as a part of the app. What happens is, when the browser gets the focus, any keyboard shortcuts I've assigned to menu items are inaccessible as they seem to be getting intercepted by the browser external (Auto assigned shortcuts like copy and paste work).
Is there any way to pass the commands keys through the revBrowser or override the functionality somehow?
I have tried to focus on on nothing or a particular field in both browserDocumentComplete and browserFinishedLoading, which works so long as the site being displayed does not put set the focus to a text field within the html (as is done by the likes of google and yahoo.)
Any assistance would be greatly appreciated,
Rob
RevBrowser focus issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
RevBrowser focus issue
Last edited by robertem on Wed Apr 23, 2014 4:20 pm, edited 1 time in total.
Re: RevBrowser focus issue
edit: apparently I spoke to soon, the workaround is fine until the user clicks something, then command keys no longer function.
I came up with hackish workaround. It does work, but it doesn't make for the best UX so I would still be interested in any thoughts on a better way to handle it.
What I did was send a delayed reFocus command to the card after the document had loaded. In the function, I set the focus to an invisible object on the card.
Thanks,
Rob
I came up with hackish workaround. It does work, but it doesn't make for the best UX so I would still be interested in any thoughts on a better way to handle it.
What I did was send a delayed reFocus command to the card after the document had loaded. In the function, I set the focus to an invisible object on the card.
Thanks,
Rob