mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Try to detect Macs, and allow holding command key to trigger native DnD
This commit is contained in:
parent
aa47e50f97
commit
092fc3406c
@ -607,7 +607,8 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
if(window.FileReader && 'draggable' in document.createElement('span') &&
|
if(window.FileReader && 'draggable' in document.createElement('span') &&
|
||||||
navigator && navigator.userAgent.indexOf('Chrome') >= 0)
|
navigator && navigator.userAgent.indexOf('Chrome') >= 0)
|
||||||
{
|
{
|
||||||
text.append('<br />' + this.egw.lang('Hold Ctrl to drag files to your computer'));
|
var key = ["Mac68K","MacPPC","MacIntel"].indexOf(window.navigator.platform) < 0 ? 'Ctrl' : 'Command';
|
||||||
|
text.append('<br />' + this.egw.lang('Hold %1 to drag files to your computer',key));
|
||||||
}
|
}
|
||||||
return div;
|
return div;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user