Commit a5b2a1b5 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил событие asc_onContextMenu. Правка для бага http://bugzserver/show_bug.cgi?id=26283

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58299 954022d7-b5bf-4e40-9824-e11837661b57
parent 36fc14bd
......@@ -1203,6 +1203,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
* asc_onUpdateTabColor (index) - эвент об обновлении цвета иконки листа
* asc_onDocumentCanSaveChanged (bIsCanSave) - эвент об обновлении статуса "можно ли сохранять файл"
* asc_onDocumentUpdateVersion (callback) - эвент о том, что файл собрался и не может больше редактироваться
* asc_onContextMenu (event) - эвент на контекстное меню
*/
spreadsheet_api.prototype.asc_StartAction = function (type, id) {
......
......@@ -935,6 +935,11 @@
}
return true;
case 93:
stop();
this.handlers.trigger('onContextMenu', event);
return result;
default:
// При зажатом Ctrl не вводим символ
if (!ctrlKey) {t.skipKeyPress = false;}
......
......@@ -340,7 +340,9 @@
// AutoComplete
"showAutoComplete": function () {self._onShowAutoComplete.apply(self, arguments);},
"popUpSelectorKeyDown": function (event) {return self._onPopUpSelectorKeyDown(event);},
"isPopUpSelectorOpen": function () {return self.popUpSelector.getVisible();}
"isPopUpSelectorOpen": function () {return self.popUpSelector.getVisible();},
"onContextMenu": function (event) {self.handlers.trigger("asc_onContextMenu", event);}
});
if (this.input && this.input.addEventListener) {
......
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