Configure shortcuts based on platform.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user