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/19 13:28:57 UTC

openmeetings git commit: [OPENMEETINGS-1706] initial commit on KeyDownHandler

Repository: openmeetings
Updated Branches:
  refs/heads/master c253c573d -> 5ef585959


[OPENMEETINGS-1706] initial commit on KeyDownHandler


Project: http://git-wip-us.apache.org/repos/asf/openmeetings/repo
Commit: http://git-wip-us.apache.org/repos/asf/openmeetings/commit/5ef58595
Tree: http://git-wip-us.apache.org/repos/asf/openmeetings/tree/5ef58595
Diff: http://git-wip-us.apache.org/repos/asf/openmeetings/diff/5ef58595

Branch: refs/heads/master
Commit: 5ef585959b3394b379570a63e1883ffca696dd96
Parents: c253c57
Author: Maxim Solodovnik <so...@gmail.com>
Authored: Tue Sep 19 20:28:40 2017 +0700
Committer: Maxim Solodovnik <so...@gmail.com>
Committed: Tue Sep 19 20:28:40 2017 +0700

----------------------------------------------------------------------
 openmeetings-flash/src/main/flex/main.mxml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/openmeetings/blob/5ef58595/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 172208c..386b31f 100644
--- a/openmeetings-flash/src/main/flex/main.mxml
+++ b/openmeetings-flash/src/main/flex/main.mxml
@@ -321,6 +321,18 @@
 		}
 
 		private function remoteKeyDownHandler(evt:KeyboardEvent):void {
+			debug("remoteKeyDownHandler", evt);
+			video.getNc().call(
+				"sendRemoteCursorEvent"
+				, new Responder(function (res:Object):void {})
+				, params.uid, {
+					action: evt.type
+					, alt: evt.altKey
+					, ctrl: evt.ctrlKey
+					, shift: evt.shiftKey
+					, char: evt.charCode
+					, key: evt.keyCode
+				});
 		}
 
 		private function _resize(_width:int, _height:int):void {