used svgedit.browser checks instead of redefined ones
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2422 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
15d765de85
commit
5ce4431658
|
@ -513,9 +513,7 @@
|
||||||
'#aaffaa', '#aaffd4', '#aaffff', '#aad4ff',
|
'#aaffaa', '#aaffd4', '#aaffff', '#aad4ff',
|
||||||
'#aaaaff', '#d4aaff', '#ffaaff', '#ffaad4'
|
'#aaaaff', '#d4aaff', '#ffaaff', '#ffaad4'
|
||||||
],
|
],
|
||||||
isMac = (navigator.platform.indexOf('Mac') >= 0),
|
modKey = (svgedit.browser.isMac() ? 'meta+' : 'ctrl+'), // ⌘
|
||||||
isWebkit = (navigator.userAgent.indexOf('AppleWebKit') >= 0),
|
|
||||||
modKey = (isMac ? 'meta+' : 'ctrl+'), // ⌘
|
|
||||||
path = svgCanvas.pathActions,
|
path = svgCanvas.pathActions,
|
||||||
undoMgr = svgCanvas.undoMgr,
|
undoMgr = svgCanvas.undoMgr,
|
||||||
Utils = svgedit.utilities,
|
Utils = svgedit.utilities,
|
||||||
|
@ -1339,7 +1337,7 @@
|
||||||
$.svgIcons(svgicons, {
|
$.svgIcons(svgicons, {
|
||||||
w:24, h:24,
|
w:24, h:24,
|
||||||
id_match: false,
|
id_match: false,
|
||||||
no_img: (!isWebkit),
|
no_img: (!svgedit.browser.isWebkit()),
|
||||||
fallback: fallback_obj,
|
fallback: fallback_obj,
|
||||||
placement: placement_obj,
|
placement: placement_obj,
|
||||||
callback: function(icons) {
|
callback: function(icons) {
|
||||||
|
@ -3271,7 +3269,7 @@
|
||||||
// switch modifier key in tooltips if mac
|
// switch modifier key in tooltips if mac
|
||||||
// NOTE: This code is not used yet until I can figure out how to successfully bind ctrl/meta
|
// NOTE: This code is not used yet until I can figure out how to successfully bind ctrl/meta
|
||||||
// in Opera and Chrome
|
// in Opera and Chrome
|
||||||
if (isMac && !window.opera) {
|
if (svgedit.browser.isMac() && !window.opera) {
|
||||||
var shortcutButtons = ['tool_clear', 'tool_save', 'tool_source', 'tool_undo', 'tool_redo', 'tool_clone'];
|
var shortcutButtons = ['tool_clear', 'tool_save', 'tool_source', 'tool_undo', 'tool_redo', 'tool_clone'];
|
||||||
var i = shortcutButtons.length;
|
var i = shortcutButtons.length;
|
||||||
while (i--) {
|
while (i--) {
|
||||||
|
|
Loading…
Reference in New Issue