Configure shortcuts based on platform.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-19 23:56:01 -03:00
parent 5ee8d22b23
commit 676272ccc0
4 changed files with 6 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ mindplot.widget.Menu = new Class({
}
};
this._toolbarElems.push(new mindplot.widget.FontFamilyPanel("fontFamily", fontFamilyModel));
this._registerTooltip('fontFamily', "Text type");
this._registerTooltip('fontFamily', "Text font");
var fontSizeModel = {
@@ -454,6 +454,7 @@ mindplot.widget.Menu = new Class({
if ($(buttonId)) {
var tooltip = text;
if (shortcut) {
shortcut = Browser.Platform.mac ? shortcut.replace("meta+", "⌘") : shortcut.replace("meta+", "ctrl");
tooltip = tooltip + " (" + shortcut + ")";
}
new mindplot.widget.KeyboardShortcutTooltip($(buttonId), tooltip);