Add Keyboard Shorcuts Support.
This commit is contained in:
@@ -13,8 +13,6 @@ FONT_FAMILY=Font Type
|
||||
FONT_SIZE=Text Size
|
||||
FONT_BOLD=Text Bold
|
||||
FONT_ITALIC=Text Italic
|
||||
UNDO_EDITION=Undo Edition
|
||||
REDO_EDITION=Redo Edition
|
||||
UNDO=Undo
|
||||
REDO=Redo
|
||||
INSERT=Insert
|
||||
|
@@ -20,8 +20,6 @@ FONT_BOLD=Negrita
|
||||
FONT_ITALIC=Italica
|
||||
FONT_COLOR=Color de Texto
|
||||
|
||||
UNDO_EDITION=Undo Edition
|
||||
REDO_EDITION=Redo Edition
|
||||
UNDO=Rehacer
|
||||
NOTE=Nota
|
||||
LOADING=Cargando ...
|
||||
|
@@ -211,7 +211,7 @@ mindplot.widget.Menu = new Class({
|
||||
{'class':'modalDialog exportModalDialog',
|
||||
closeButton:true,
|
||||
destroyOnClose:true,
|
||||
title: $msg('EXPORT')
|
||||
title:$msg('EXPORT')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest:function () {
|
||||
@@ -405,6 +405,28 @@ mindplot.widget.Menu = new Class({
|
||||
}
|
||||
|
||||
this._registerEvents(designer);
|
||||
|
||||
// Keyboard Shortcuts Action ...
|
||||
var keyboardShortcut = $('keyboardShortcuts');
|
||||
if (keyboardShortcut) {
|
||||
|
||||
keyboardShortcut.addEvent('click', function (event) {
|
||||
var reqDialog = new MooDialog.Request('c/keyboard', null,
|
||||
{'class':'modalDialog keyboardModalDialog',
|
||||
closeButton:true,
|
||||
destroyOnClose:true,
|
||||
title:$msg('SHORTCUTS')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest:function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
});
|
||||
MooDialog.Request.active = reqDialog;
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
_registerEvents:function (designer) {
|
||||
|
Reference in New Issue
Block a user