mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-07 22:48:58 +01:00
Fix user-select not working in FF
This commit is contained in:
parent
3f6a9531cd
commit
25a52cb267
@ -2182,11 +2182,11 @@ egwActionObject.prototype.isDragOut = function (_event)
|
||||
* -Others: Ctrl key
|
||||
*
|
||||
* @param {type} _event
|
||||
* @returns {Boolean} return true if left mouse click and Ctrl key are pressed, otherwise false
|
||||
* @returns {Boolean} return true if left mouse click and Ctrl/Alt key are pressed, otherwise false
|
||||
*/
|
||||
egwActionObject.prototype.isSelection = function (_event)
|
||||
{
|
||||
return !(_event.shiftKey) && _event.which == 1 && (_event.metaKey || _event.ctrlKey);
|
||||
return !(_event.shiftKey) && _event.which == 1 && (_event.metaKey || _event.ctrlKey || _event.altKey);
|
||||
};
|
||||
|
||||
/** egwActionObjectInterface Interface **/
|
||||
|
@ -368,6 +368,11 @@ function egwDragActionImplementation()
|
||||
{
|
||||
var key = ["Mac68K","MacPPC","MacIntel"].indexOf(window.navigator.platform) < 0 ?
|
||||
egw.lang("Ctrl") : egw.lang("Command ⌘");
|
||||
// We can not use Ctrl key for FF because FF has specific function
|
||||
// for element selection bound to ctrl key and it would confilicts
|
||||
// with our selection functionallity. Therefore, we use Alt key when
|
||||
// it comes to FF regardless of OS.
|
||||
if (window.navigator.userAgent.match(/firefox/i)) key = egw.lang("Alt");
|
||||
egw.message(egw.lang('Hold [%1] key to select text eg. to copy it', key), 'info');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user