防止歌剧鼠标手势 [英] Preventing opera mouse gestures

查看:108
本文介绍了防止歌剧鼠标手势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以防止歌剧鼠标手势右键?我有html5上的网络应用程序,我决定使用鼠标右键。但是在歌剧中并不奏效,因为歌剧有鼠标手势。

Is it possible to prevent opera mouse gestures for right button? I have web app on html5 and I decided to use right mouse button. But it doesnt work in opera, because opera has mouse gestures.


event.preventDefault(); //它不工作

event.preventDefault(); // it doesn't work

可能有人知道吗?

谢谢。

推荐答案

与手势实际上没有任何关系。 Opera不允许脚本默认检测上下文菜单事件,因此您不得不要求用户更改您的站点的站点首选项,以允许脚本检测上下文菜单事件。

It doesn't actually have anything to do with gestures specifically. Opera doesn't allow scripts to detect context menu events by default so you'd have to ask users to change their site preferences for your site to allow scripts to detect context menu events.

右键单击 - >编辑站点首选项 - >脚本(选项卡) - >允许脚本检测上下文菜单事件

Right click -> Edit Site Preferences -> Scripting (tab) -> Allow scripts to detect context menu events

这篇关于防止歌剧鼠标手势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆