Add Keyboard Shorcuts Support.

This commit is contained in:
Paulo Gustavo Veiga
2012-07-02 00:06:26 -03:00
parent d3447d1142
commit ada0f6c679
10 changed files with 166 additions and 73 deletions

View File

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

View File

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

View File

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