如何防止在按Ctrl和+时放大Firefox? [英] How do you prevent firefox from zooming in when pressing ctrl and +?

查看:88
本文介绍了如何防止在按Ctrl和+时放大Firefox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Firefox中使用ctrl和+组合来为我们的web应用程序执行其他操作。当我们的Web应用程序正在监听这个事件时,我怎样才能防止Firefox变焦?我不想在Firefox中更改设置,但希望代码以某种方式执行此操作。任何建议?

I am trying to use the ctrl and + combination within firefox for a different action for our web application. How could I prevent firefox from zooming when our web application is listening for this event? I do not want to change a setting within firefox, but would like the code to do this somehow. Any suggestions?

推荐答案

我不认为你可以用网站代码覆盖应用程序快捷方式。想象一下一个网站覆盖alt +标签,突然你将无法从你的浏览器窗口中退出。这可能与一些插件有关,但这取决于您使用的浏览器。

I don't think you can overwrite application shortcuts with website code. Imagine a site overwriting alt + tab, and suddenly you wouldn't be able to tab out of your browser window anymore. It is possible with some plugins, but that depends on the browser you're using.

相反,使用不是默认键盘快捷键的内容来防止其他用户有同样的问题。每个人都期待并依靠ctrl和+来改变他们的缩放级别;覆盖这只是一个不明智的可用性。

Instead, use something that isn't a default keyboard shortcut to prevent other users from having the same problems. Everyone expects and counts on ctrl and +- to change their zoom level; overwriting this simply isn't a good idea usability-wise.

这篇关于如何防止在按Ctrl和+时放大Firefox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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