- remove Ctrl-Z duplicate for whiteboard undo

- add presentation control key binding
This commit is contained in:
Richard Alam 2012-08-16 19:21:53 +00:00
parent a61dba143f
commit 33fcacb00b
6 changed files with 10 additions and 25 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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:

View File

@ -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);

View File

@ -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();
}
}