parent
ecb29a600b
commit
f4f00e30fd
@ -40,7 +40,7 @@ ContextMenu.prototype = {
|
|||||||
this.hideMenu();
|
this.hideMenu();
|
||||||
if (Event.element(e).tagName == 'A') { return; }
|
if (Event.element(e).tagName == 'A') { return; }
|
||||||
if (window.opera && e.altKey) { return; }
|
if (window.opera && e.altKey) { return; }
|
||||||
if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
|
if (!Event.isRightClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
|
||||||
var tr = Event.findElement(e, 'tr');
|
var tr = Event.findElement(e, 'tr');
|
||||||
if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) {
|
if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) {
|
||||||
// a row was clicked, check if the click was on checkbox
|
// a row was clicked, check if the click was on checkbox
|
||||||
@ -53,7 +53,7 @@ ContextMenu.prototype = {
|
|||||||
tr.removeClassName('context-menu-selection');
|
tr.removeClassName('context-menu-selection');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (e.ctrlKey) {
|
if (e.ctrlKey || e.metaKey) {
|
||||||
this.toggleSelection(tr);
|
this.toggleSelection(tr);
|
||||||
} else if (e.shiftKey) {
|
} else if (e.shiftKey) {
|
||||||
if (this.lastSelected != null) {
|
if (this.lastSelected != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user