[DE] Hide context menu when no selected text in pdf

This commit is contained in:
Julia Radzhabova 2022-02-02 18:12:20 +03:00
parent 7a88124070
commit 2b5d415f43

View file

@ -242,6 +242,11 @@ define([
var onContextMenu = function(event){
if (Common.UI.HintManager.isHintVisible())
Common.UI.HintManager.clearHints();
if (!event) {
Common.UI.Menu.Manager.hideAll();
return;
}
_.delay(function(){
if (event.get_Type() == 0) {
showObjectMenu.call(me, event);