Added hotkeys to open shortcut help window, logout of meeting, and raise hand in viewer's list
This commit is contained in:
parent
e3ef32b3d8
commit
a7277c7346
@ -317,6 +317,13 @@ bbb.shortcutkey.share.microphone.function = Open microphone settings window.
|
||||
bbb.shortcutkey.share.webcam = 66
|
||||
bbb.shortcutkey.share.webcam.function = Open webcam sharing window.
|
||||
|
||||
bbb.shortcutkey.shortcutWindow = 72
|
||||
bbb.shortcutkey.shortcutWindow.function = Open shortcut help window.
|
||||
bbb.shortcutkey.logout = 88
|
||||
bbb.shortcutkey.logout.function = Log out of this meeting.
|
||||
bbb.shortcutkey.raiseHand = 82
|
||||
bbb.shortcutkey.raiseHand.function = Raise your hand in the Viewer's list.
|
||||
|
||||
bbb.shortcutkey.chat.chatbox.advance = shift+alt+32
|
||||
bbb.shortcutkey.chat.chatbox.advance.function = Advance one message
|
||||
bbb.shortcutkey.chat.chatbox.goback = control+32
|
||||
|
@ -119,6 +119,7 @@
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.present.focusslide') as String)] = ShortcutEvent.FOCUS_SLIDE;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.whiteboard.undo') as String)] = ShortcutEvent.UNDO_WHITEBOARD;
|
||||
|
||||
// General hotKeys (usable from anywhere in the application)
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.focus.viewers') as String)] = ShortcutEvent.FOCUS_VIEWERS_WINDOW;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.focus.listeners') as String)] = ShortcutEvent.FOCUS_LISTENERS_WINDOW;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.focus.video') as String)] = ShortcutEvent.FOCUS_VIDEO_WINDOW;
|
||||
@ -128,6 +129,10 @@
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.share.desktop') as String)] = ShortcutEvent.SHARE_DESKTOP;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.share.webcam') as String)] = ShortcutEvent.SHARE_WEBCAM;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.share.microphone') as String)] = ShortcutEvent.SHARE_MICROPHONE;
|
||||
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.shortcutWindow') as String)] = ShortcutEvent.REMOTE_OPEN_SHORTCUT_WIN;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.logout') as String)] = ShortcutEvent.LOGOUT;
|
||||
keyCombos[modifier+(ResourceUtil.getInstance().getString('bbb.shortcutkey.raiseHand') as String)] = ShortcutEvent.RAISE_HAND;
|
||||
}
|
||||
|
||||
private function hotkeyCapture():void{
|
||||
|
@ -49,6 +49,11 @@ package org.bigbluebutton.main.events {
|
||||
public static const REMOTE_FOCUS_WEBCAM:String = 'REMOTE_FOCUS_WEBCAM';
|
||||
// Remote focus microphone not necessary; audio options already hog focus
|
||||
|
||||
//public static const CHANGE_LANGUAGE:String = 'CHANGE_LANGUAGE';
|
||||
public static const REMOTE_OPEN_SHORTCUT_WIN:String = 'REMOTE_OPEN_SHORTCUT_WIN';
|
||||
public static const LOGOUT:String = 'LOGOUT';
|
||||
public static const RAISE_HAND:String = 'RAISE_HAND';
|
||||
|
||||
|
||||
|
||||
public var otherUserID:String;
|
||||
|
@ -31,7 +31,8 @@
|
||||
<mate:Listener type="{ConnectionFailedEvent.USER_LOGGED_OUT}" method="hideToolbar" />
|
||||
<mate:Listener type="{ConfigEvent.CONFIG_EVENT}" method="gotConfigParameters" />
|
||||
<mate:Listener type="{SettingsEvent.SETTINGS_MODULE_LOADED}" method="showSettingsButton" />
|
||||
|
||||
<mate:Listener type="{ShortcutEvent.REMOTE_OPEN_SHORTCUT_WIN}" method="remoteShortcutClick" />
|
||||
<mate:Listener type="{ShortcutEvent.LOGOUT}" method="remoteLogout" />
|
||||
|
||||
|
||||
<mx:Script>
|
||||
@ -229,6 +230,14 @@
|
||||
d.dispatchEvent(new SettingsEvent(SettingsEvent.OPEN_SETTINGS_PANEL));
|
||||
}
|
||||
|
||||
public function remoteShortcutClick(e:ShortcutEvent):void{
|
||||
onShortcutButtonClick();
|
||||
}
|
||||
|
||||
public function remoteLogout(e:ShortcutEvent):void{
|
||||
doLogout();
|
||||
}
|
||||
|
||||
private function onShortcutButtonClick(e:Event = null):void {
|
||||
var d:Dispatcher = new Dispatcher();
|
||||
d.dispatchEvent(new ShortcutEvent(ShortcutEvent.OPEN_SHORTCUT_WIN));
|
||||
|
@ -44,11 +44,15 @@
|
||||
|
||||
private var genResource:Array = ['bbb.shortcutkey.flash.exit', 'bbb.shortcutkey.focus.viewers', 'bbb.shortcutkey.focus.listeners',
|
||||
'bbb.shortcutkey.focus.video', 'bbb.shortcutkey.focus.presentation', 'bbb.shortcutkey.focus.chat',
|
||||
'bbb.shortcutkey.share.desktop', 'bbb.shortcutkey.share.microphone', 'bbb.shortcutkey.share.webcam'];
|
||||
'bbb.shortcutkey.share.desktop', 'bbb.shortcutkey.share.microphone', 'bbb.shortcutkey.share.webcam',
|
||||
'bbb.shortcutkey.shortcutWindow', 'bbb.shortcutkey.logout', 'bbb.shortcutkey.raiseHand'];
|
||||
|
||||
private var presResource:Array = ['bbb.shortcutkey.present.focusslide', 'bbb.shortcutkey.whiteboard.undo'];
|
||||
|
||||
private var chatResource:Array = ['bbb.shortcutkey.chat.chatinput', 'bbb.shortcutkey.chat.chattabs', 'bbb.shortcutkey.chat.chatbox.advance',
|
||||
'bbb.shortcutkey.chat.chatbox.goback', 'bbb.shortcutkey.chat.chatbox.repeat', 'bbb.shortcutkey.chat.chatbox.golatest',
|
||||
'bbb.shortcutkey.chat.chatbox.gofirst', 'bbb.shortcutkey.chat.chatbox.goread'];
|
||||
|
||||
private var audResource:Array = ['bbb.shortcutkey.listeners.muteme'];
|
||||
[Bindable]
|
||||
private var shownKeys:ArrayCollection;
|
||||
|
@ -32,6 +32,7 @@
|
||||
<mate:Listener type="{ShortcutEvent.FOCUS_VIEWERS_WINDOW}" method="focusWindow" />
|
||||
<mate:Listener type="{ConferenceCreatedEvent.CONFERENCE_CREATED_EVENT}" method="conferenceStarted" />
|
||||
<mate:Listener type="{LocaleChangeEvent.LOCALE_CHANGED}" method="localeChanged" />
|
||||
<mate:Listener type="{ShortcutEvent.RAISE_HAND}" method="remoteRaiseHand" />
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
@ -142,6 +143,10 @@
|
||||
presentBtn.enabled = false;
|
||||
}
|
||||
|
||||
public function remoteRaiseHand(e:ShortcutEvent):void{
|
||||
raiseHand();
|
||||
}
|
||||
|
||||
private function raiseHand():void{
|
||||
handRaised = !handRaised;
|
||||
var e:RaiseHandEvent = new RaiseHandEvent(RaiseHandEvent.RAISE_HAND);
|
||||
|
Loading…
Reference in New Issue
Block a user