Fix Firefox issue.

This commit is contained in:
Paulo Veiga 2011-08-21 22:53:37 -03:00
parent ad13c296ad
commit f036a7684e
3 changed files with 20 additions and 6 deletions

View File

@ -94,6 +94,17 @@ mindplot.DesignerKeyboard = new Class({
designer.changeFontWeight(); designer.changeFontWeight();
}, },
'ctrl+s' : function(event) {
event.preventDefault();
designer.save(null, true);
},
'meta+s' : function(event) {
event.preventDefault();
designer.save(null, true);
},
'ctrl+i' : function() { 'ctrl+i' : function() {
designer.changeFontStyle(); designer.changeFontStyle();
}, },

View File

@ -127,7 +127,7 @@ mindplot.Workspace = new Class({
this._screenManager.setScale(zoom); this._screenManager.setScale(zoom);
// Some changes in the screen. Let's fire an update event... // Some changes in the screen. Let's fire an update event...
this._screenManager.fireEvent('update', new Event()); this._screenManager.fireEvent('update');
}, },
getScreenManager: function() { getScreenManager: function() {
@ -180,7 +180,7 @@ mindplot.Workspace = new Class({
event.preventDefault(); event.preventDefault();
// Fire drag event ... // Fire drag event ...
screenManager.fireEvent('update', new Event()); screenManager.fireEvent('update');
wasDragged = true; wasDragged = true;
@ -202,7 +202,7 @@ mindplot.Workspace = new Class({
mWorkspace.enableWorkspaceEvents(true); mWorkspace.enableWorkspaceEvents(true);
if (!wasDragged) { if (!wasDragged) {
screenManager.fireEvent('click', new Event()); screenManager.fireEvent('click');
} }
}; };
screenManager.addEvent('mouseup', workspace._mouseUpListener); screenManager.addEvent('mouseup', workspace._mouseUpListener);

View File

@ -13,9 +13,12 @@
<!--<script type='text/javascript' src='../js/wiseLibrary.js'></script>--> <!--<script type='text/javascript' src='../js/wiseLibrary.js'></script>-->
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script> <script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script> <script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>
<!--<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>-->
<!--<script type='text/javascript' src='../js/common.js'></script>--> <!--<script type='text/javascript' src='../js/common.js'></script>-->
<!--<script type='text/javascript' src='../js/windoo.js'></script>--> <!--<script type='text/javascript' src='../js/windoo.js'></script>-->
@ -25,8 +28,8 @@
<script type="text/javascript"> <script type="text/javascript">
//Google-Brix framework load callback function //Google-Brix framework load callback function
collabOnLoad = function() { collabOnLoad = function() {
isGoogleBrix=true; isGoogleBrix = true;
if(typeof mindplot != "undefined"){ if (typeof mindplot != "undefined") {
mindplot.collaboration.frameworks.brix.BrixFramework.instanciate(); mindplot.collaboration.frameworks.brix.BrixFramework.instanciate();
} }
}; };