You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2017/09/20 11:46:11 UTC
openmeetings git commit: [OPENMEETINGS-1706] keyDown handler seems to
work
Repository: openmeetings
Updated Branches:
refs/heads/master b630c8253 -> 668e2d181
[OPENMEETINGS-1706] keyDown handler seems to work
Project: http://git-wip-us.apache.org/repos/asf/openmeetings/repo
Commit: http://git-wip-us.apache.org/repos/asf/openmeetings/commit/668e2d18
Tree: http://git-wip-us.apache.org/repos/asf/openmeetings/tree/668e2d18
Diff: http://git-wip-us.apache.org/repos/asf/openmeetings/diff/668e2d18
Branch: refs/heads/master
Commit: 668e2d181fc7044c2272d7fe080117b5eb35dbd1
Parents: b630c82
Author: Maxim Solodovnik <so...@gmail.com>
Authored: Wed Sep 20 18:46:03 2017 +0700
Committer: Maxim Solodovnik <so...@gmail.com>
Committed: Wed Sep 20 18:46:03 2017 +0700
----------------------------------------------------------------------
openmeetings-flash/src/main/flex/main.mxml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/openmeetings/blob/668e2d18/openmeetings-flash/src/main/flex/main.mxml
----------------------------------------------------------------------
diff --git a/openmeetings-flash/src/main/flex/main.mxml b/openmeetings-flash/src/main/flex/main.mxml
index 386b31f..feedb11 100644
--- a/openmeetings-flash/src/main/flex/main.mxml
+++ b/openmeetings-flash/src/main/flex/main.mxml
@@ -21,7 +21,7 @@
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
- width="570" height="900" pageTitle="Openmeetings" fontSize="12"
+ width="570" height="900" pageTitle="Openmeetings" fontSize="12" focusEnabled="true"
applicationComplete="appInit(event)" uncaughtError="uncaughtError(event)">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
@@ -269,19 +269,23 @@
private function _updateRemote():void {
if ("sharing" === type && hasRightRemoteControl()) {
+ fakeTa.text = "";
+ fakeTa.setFocus();
addEventListener(MouseEvent.MOUSE_DOWN, remoteMouseDownHandler);
addEventListener(MouseEvent.MOUSE_UP, remoteMouseUpHandler);
addEventListener(MouseEvent.MOUSE_MOVE, remoteMouseMoveHandler);
- addEventListener(KeyboardEvent.KEY_DOWN, remoteKeyDownHandler);
+ this.addEventListener(KeyboardEvent.KEY_DOWN, remoteKeyDownHandler, false, 0, true);
} else {
removeEventListener(MouseEvent.MOUSE_DOWN, remoteMouseDownHandler);
removeEventListener(MouseEvent.MOUSE_UP, remoteMouseUpHandler);
removeEventListener(MouseEvent.MOUSE_MOVE, remoteMouseMoveHandler);
- removeEventListener(KeyboardEvent.KEY_DOWN, remoteKeyDownHandler);
+ this.removeEventListener(KeyboardEvent.KEY_DOWN, remoteKeyDownHandler);
}
}
private function remoteMouseDownHandler(evt:MouseEvent):void {
+ fakeTa.text = "";
+ fakeTa.setFocus();
video.getNc().call(
"sendRemoteCursorEvent"
, new Responder(function (res:Object):void {})
@@ -321,7 +325,6 @@
}
private function remoteKeyDownHandler(evt:KeyboardEvent):void {
- debug("remoteKeyDownHandler", evt);
video.getNc().call(
"sendRemoteCursorEvent"
, new Responder(function (res:Object):void {})
@@ -602,6 +605,7 @@
}
]]></fx:Script>
+ <s:TextArea id="fakeTa" width="1" height="1" editable="true"/>
<s:Image id="userImage" visible="false" width="0" height="0" />
<mx:UIComponent id="videoDisplay" width="0" height="0" />
<s:Rect id="volumeRect" x="5" y="5" width="10" height="100" visible="false" />