Commit 3355d703 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

onContextMenu сделал на mouseUp

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58373 954022d7-b5bf-4e40-9824-e11837661b57
parent 9920fc79
......@@ -1064,6 +1064,11 @@
/** @param event {MouseEvent} */
asc_CEventsController.prototype._onWindowMouseUp = function (event) {
if (2 === event.button) {
this.handlers.trigger('onContextMenu', event);
return true;
}
var coord = this._getCoordinates(event);
this.isMousePressed = false;
......@@ -1300,7 +1305,6 @@
// Если нажали правую кнопку мыши, то сменим выделение только если мы не в выделенной области
if (2 === event.button) {
t.handlers.trigger("changeSelectionRightClick", coord.x, coord.y);
t.handlers.trigger('onContextMenu', event);
} else {
if (t.targetInfo && t.targetInfo.target === c_oTargetType.FillHandle && false === this.settings.isViewerMode){
// В режиме автозаполнения
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment