- remove Ctrl-Z duplicate for whiteboard undo
- add presentation control key binding
This commit is contained in:
parent
a61dba143f
commit
33fcacb00b
@ -32,7 +32,6 @@
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import flash.events.Event;
|
||||
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
import mx.managers.HistoryManager;
|
||||
import org.bigbluebutton.core.EventBroadcaster;
|
||||
|
@ -47,21 +47,17 @@
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
|
||||
import flash.events.MouseEvent;
|
||||
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
import flash.events.MouseEvent;
|
||||
import flexlib.mdi.containers.MDIWindow;
|
||||
import flexlib.mdi.effects.effectsLib.MDIVistaEffects;
|
||||
|
||||
import flexlib.mdi.effects.effectsLib.MDIVistaEffects;
|
||||
import mx.collections.ArrayCollection;
|
||||
import mx.containers.TitleWindow;
|
||||
import mx.controls.Alert;
|
||||
import mx.core.FlexGlobals;
|
||||
import mx.core.UIComponent;
|
||||
import mx.events.CloseEvent;
|
||||
import mx.managers.PopUpManager;
|
||||
|
||||
import mx.managers.PopUpManager;
|
||||
import org.bigbluebutton.common.IBbbModuleWindow;
|
||||
import org.bigbluebutton.common.Images;
|
||||
import org.bigbluebutton.common.LogUtil;
|
||||
|
@ -95,7 +95,7 @@
|
||||
}
|
||||
|
||||
private function loadKeys(resource:Array):ArrayList {
|
||||
var keyList = new ArrayList();
|
||||
var keyList:ArrayList = new ArrayList();
|
||||
LogUtil.debug("CHAD " + resource.length);
|
||||
var keyCombo:String;
|
||||
var indx:int = 255;
|
||||
|
@ -209,7 +209,7 @@
|
||||
}
|
||||
|
||||
private function onKeyUp(event:KeyboardEvent):void {
|
||||
if (event.shiftKey) {
|
||||
if (event.shiftKey && event.ctrlKey) {
|
||||
switch (event.keyCode) {
|
||||
case Keyboard.LEFT:
|
||||
case Keyboard.UP:
|
||||
|
@ -151,8 +151,7 @@ package org.bigbluebutton.modules.whiteboard
|
||||
wbCanvas.addGraphic(tobj);
|
||||
wbCanvas.stage.focus = tobj;
|
||||
_annotationsList.push(tobj);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* adds a new TextObject that is suited for a viewer. For example, it will not
|
||||
@ -509,9 +508,7 @@ package org.bigbluebutton.modules.whiteboard
|
||||
break;
|
||||
}
|
||||
|
||||
if (status == TextObject.TEXT_PUBLISHED) {
|
||||
|
||||
|
||||
if (status == TextObject.TEXT_PUBLISHED) {
|
||||
var e:GraphicObjectFocusEvent = new GraphicObjectFocusEvent(GraphicObjectFocusEvent.OBJECT_DESELECTED);
|
||||
e.data = tobj;
|
||||
wbCanvas.dispatchEvent(e);
|
||||
|
@ -109,15 +109,8 @@
|
||||
|
||||
private function onCreationComplete():void {
|
||||
setToolType(WhiteboardConstants.TYPE_ZOOM, null);
|
||||
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
|
||||
}
|
||||
|
||||
private function onKeyUp(event:KeyboardEvent):void {
|
||||
if (event.ctrlKey && event.keyCode == Keyboard.Z) {
|
||||
sendUndoCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function handleWhiteboardButtonPressed(e:WhiteboardButtonEvent):void {
|
||||
setToolType(e.graphicType, e.toolType);
|
||||
}
|
||||
@ -138,7 +131,7 @@
|
||||
dispatchEvent(new WhiteboardDrawEvent(WhiteboardDrawEvent.CLEAR));
|
||||
}
|
||||
|
||||
if(graphicType == WhiteboardConstants.TYPE_UNDO) {
|
||||
if (graphicType == WhiteboardConstants.TYPE_UNDO) {
|
||||
sendUndoCommand();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user