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);

View File

@ -25,6 +25,8 @@ div#headerInfo {
width: 100%;
height: @header-info-height;
color: white;
padding: 0px 18px
}
div#headerActions {

View File

@ -10,6 +10,7 @@ div#toolbar {
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.47, rgb(229, 227, 209)), color-stop(0.87, rgb(252, 250, 237)));
border-bottom: 3px double rgb(190, 190, 190);
border-top: 1px solid rgb(190, 190, 190);
padding: 0px 15px;
}
div#toolbar .buttonContainer {

View File

@ -4,8 +4,7 @@
<head>
<base href="../">
<title>WiseMapping - Editor </title>
<meta http-equiv="Content-type" content="text/html; char
set=UTF-8"/>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
<!--[if lt IE 9]>
<meta http-equiv="X-UA-Compatible" content="chrome=1">