[DE] Hide context menu when no selected text in pdf
This commit is contained in:
parent
7a88124070
commit
2b5d415f43
|
@ -242,6 +242,11 @@ define([
|
||||||
var onContextMenu = function(event){
|
var onContextMenu = function(event){
|
||||||
if (Common.UI.HintManager.isHintVisible())
|
if (Common.UI.HintManager.isHintVisible())
|
||||||
Common.UI.HintManager.clearHints();
|
Common.UI.HintManager.clearHints();
|
||||||
|
if (!event) {
|
||||||
|
Common.UI.Menu.Manager.hideAll();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_.delay(function(){
|
_.delay(function(){
|
||||||
if (event.get_Type() == 0) {
|
if (event.get_Type() == 0) {
|
||||||
showObjectMenu.call(me, event);
|
showObjectMenu.call(me, event);
|
||||||
|
|
Loading…
Reference in a new issue