mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Configure shortcuts based on platform.
This commit is contained in:
parent
5ee8d22b23
commit
676272ccc0
@ -59,7 +59,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
this._toolbarElems.push(new mindplot.widget.FontFamilyPanel("fontFamily", fontFamilyModel));
|
this._toolbarElems.push(new mindplot.widget.FontFamilyPanel("fontFamily", fontFamilyModel));
|
||||||
this._registerTooltip('fontFamily', "Text type");
|
this._registerTooltip('fontFamily', "Text font");
|
||||||
|
|
||||||
|
|
||||||
var fontSizeModel = {
|
var fontSizeModel = {
|
||||||
@ -454,6 +454,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
if ($(buttonId)) {
|
if ($(buttonId)) {
|
||||||
var tooltip = text;
|
var tooltip = text;
|
||||||
if (shortcut) {
|
if (shortcut) {
|
||||||
|
shortcut = Browser.Platform.mac ? shortcut.replace("meta+", "⌘") : shortcut.replace("meta+", "ctrl");
|
||||||
tooltip = tooltip + " (" + shortcut + ")";
|
tooltip = tooltip + " (" + shortcut + ")";
|
||||||
}
|
}
|
||||||
new mindplot.widget.KeyboardShortcutTooltip($(buttonId), tooltip);
|
new mindplot.widget.KeyboardShortcutTooltip($(buttonId), tooltip);
|
||||||
|
@ -25,6 +25,8 @@ div#headerInfo {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: @header-info-height;
|
height: @header-info-height;
|
||||||
color: white;
|
color: white;
|
||||||
|
padding: 0px 18px
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div#headerActions {
|
div#headerActions {
|
||||||
|
@ -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)));
|
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-bottom: 3px double rgb(190, 190, 190);
|
||||||
border-top: 1px solid rgb(190, 190, 190);
|
border-top: 1px solid rgb(190, 190, 190);
|
||||||
|
padding: 0px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#toolbar .buttonContainer {
|
div#toolbar .buttonContainer {
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<base href="../">
|
<base href="../">
|
||||||
<title>WiseMapping - Editor </title>
|
<title>WiseMapping - Editor </title>
|
||||||
<meta http-equiv="Content-type" content="text/html; char
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
||||||
set=UTF-8"/>
|
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
Loading…
Reference in New Issue
Block a user