Hi, We're trying to embed a video player into a
VW application window using SmallCom/X (see attached screenshot). We use an
OLEControl to embed it and it runs fine, but as soon as we select one of the
buttons on the video player, the VW window doesn't receive keyboard events
anymore. The mouse still works but the keyboard is gone until we click on
another window and then it's back. The problem seems to be that the VM isn't
sending keyboard events to the image anymore. The method
InputState>>send:eventKeyPress: doesn't get send anymore once we use the
buttons on the player. What can be done about this? Thanks in advance, Mark _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc continuityviewer_keyboardfocus_issue.png (40K) Download Attachment |
Interestingly enough, this same
thing annoys me about embedded videos on Google Reader – as soon as you click
play in the control (say, youtube) the browser will no longer be the target of
keyboard events (like j,k, etc) and you’ll need to click anywhere in the
browser again to give it back the focus. Could these be related? -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 From:
[hidden email] [mailto:[hidden email]] On Behalf Of Mark
Plas Hi, We're trying to embed a video player into a VW application
window using SmallCom/X (see attached screenshot). We use an OLEControl to
embed it and it runs fine, but as soon as we select one of the buttons on the
video player, the VW window doesn't receive keyboard events anymore. The mouse
still works but the keyboard is gone until we click on another window and then
it's back. The problem seems to be that the VM isn't sending keyboard
events to the image anymore. The method
InputState>>send:eventKeyPress: doesn't get send anymore once we use the
buttons on the player. What can be done about this? Thanks in advance, Mark _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I've done an experiment
in which I fork a process that continuously does: SetFocus(HWND
hwnd) of the window
containing the player. SetFocus is a windows procedure that sends keyboard
input to the window with the given handle. This fixes the problem but I
wouldn't qualify this as a clean fix. Perhaps in internet browsers they also do
this when a mouse click is received? Does anyone have any
better ideas to fix this? From: Boris Popov [mailto:[hidden email]]
Interestingly enough,
this same thing annoys me about embedded videos on Google Reader – as
soon as you click play in the control (say, youtube) the browser will no longer
be the target of keyboard events (like j,k, etc) and you’ll need to click
anywhere in the browser again to give it back the focus. Could these be related? -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 From: [hidden email]
[mailto:[hidden email]] On Behalf Of Mark Plas Hi, We're trying to embed a video player into a
VW application window using SmallCom/X (see attached screenshot). We use an
OLEControl to embed it and it runs fine, but as soon as we select one of the
buttons on the video player, the VW window doesn't receive keyboard events
anymore. The mouse still works but the keyboard is gone until we click on
another window and then it's back. The problem seems to be that the VM isn't
sending keyboard events to the image anymore. The method
InputState>>send:eventKeyPress: doesn't get send anymore once we use the
buttons on the player. What can be done about this? Thanks in advance, Mark _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |