当前位置: 首页 > news >正文

网站建设讲师招聘wordpress 箭头翻页

网站建设讲师招聘,wordpress 箭头翻页,中国对外建设有限公司网站,有哪些做统计销量的网站最近给Firefox这一快捷键坑了几次。恰好发现在CMU也有人遇到类似的烦恼,找到一篇基于Linux的教程。 我使用的是Windows,所以根据自己的情况做了些修改,成功了。小众需求就犯懒直接将笔记贴上了,如果有谁用得上的话,我写…

最近给Firefox这一快捷键坑了几次。恰好发现在CMU也有人遇到类似的烦恼,找到一篇基于Linux的教程。
我使用的是Windows,所以根据自己的情况做了些修改,成功了。小众需求就犯懒直接将笔记贴上了,如果有谁用得上的话,我写个中文版。

Disabling the Ctrl-W shortcut on Firefox

Many vim users use ctrl-w to delete a word. Unfortunately on Firefox, this closes the current tab. So if you’re editing a text area / filling out a form you may accidentally close the tab.

There’s no option to change or disable default keyboard shortcuts (Firefox 98, 2022-03-29 // Firefox 117依然不支持). So if you want to do it, you need to edit files manually.

To disable ctrl-w shortcut in Firefox, you need to manually edit the file:

  • /usr/lib/firefox/browser/omni.ja (Linux) .
  • "/c/Program Files/Mozilla Firefox/browser/omni.ja" (Windows)

Modify the File

Run git bash in administration mode.

First unzip it to a temporary directory:

mkdir /tmp/firefox-omni
cd /tmp/firefox-omni
unzip "/c/Program Files/Mozilla Firefox/browser/omni.ja"

Now you need to edit ./chrome/browser/content/browser/browser.xhtml to make your changes. You can change as many shortcuts as you want here. The ctrl-w key is called close-shortcut. You can either

  • comment out the offending line, or
  • change modifiers="accel,shift" to require ctrl-shift-w to close tabs.

Note, the above instructions only make Ctrl-W an unreserved shortcut. This means extensions can now remap it. If you don’t have any extensions that remap it then Ctrl-W will still close your current window.

If you’d like to simply disable Ctrl-W, then just comment out the above shortcut definitions entirely (instead of only changing reserved="true" to reserved="false" as I suggest above).

Here is how to comment it out:

<key id="key_close" data-l10n-id="close-shortcut" command="cmd_close" modifiers="accel" reserved="true"/>

Now switch to root, and install your changes:

cd /tmp/firefox-omni
zip -0DXqr /tmp/omni.ja * # I have install `zip` into DELL
cd "/c/Program Files/Mozilla Firefox/browser"cp ./omni.ja ./omni.ja.bkup # backupcp /tmp/omni.ja ./omni.ja # TOCHECK: if the first path is correct
rm -r /tmp/omni.ja /tmp/firefox-omni

Clear Firefox Start Cache and Restart

In URI panel, enter about:support

Click “Clear startup cache…” on the right, and click restart. (opened pages won’t be lost)

Done🍺

Note: You will have to do this every time you reinstall firefox. I automated the above into a script. First save firefox-omni.patch as ~/local/src/firefox-omni.patch, and then download and run this script as a normal users (that has sudo privileges).

Reference

https://www.math.cmu.edu/~gautam/sj/blog/20220329-firefox-disable-ctrl-w.html

http://www.yayakq.cn/news/589107/

相关文章:

  • 小型网站维护东莞网站制作公司怎么选择
  • 深圳网站建设 设计卓越给国外做网站
  • 快速网站轻松排名哪家好dedecms导航网站
  • 凡客建站手机版下载织梦网站图片代码
  • 门户站点是什么做网站的准备什么软件
  • 建设政协网站的意义如何做网页游戏网站
  • 蓟县集团网站建设网页设计大赛策划案的背景
  • 厦门杏林建设企业网站赤水网站建设
  • 杭州萧山做网站深圳网站建设专业乐云seo
  • 网站域名跳转导航门户网站怎么做
  • 新网备案成功了怎么做网站自适应网站案例源码
  • 公司网站设计是不是一次性收费的宿迁房产网签备案查询系统
  • 分析网站的外链电子商务冷门吗
  • 网站竞价怎么做如何申请域名建立网站
  • 专注营销型网站建设公司 做网站上海注册公司需要多久
  • 网站做实名验证ru后缀的网站
  • 网站速度打开慢的原因wordpress 获取文章图片
  • 社交网站上的商城怎么做陕西省住房和城乡建设厅综合服务网站
  • wordpress权限控制手机系统优化工具
  • 可信网站多少钱wordpress七牛云设置
  • 高端网站建设报价wordpress自定义上传图片
  • 苏州天狮建设监理有限公司网站用ai怎么做网站
  • php网站底部文件wordpress 媒体大小
  • 下载了网站建设asp用html5做的静态网站
  • 新建网站多少钱茶具网站模板
  • 金融网站建设案例加载wordpress外部文件路径
  • 网站内容上传要求北京新冠最新情况最新消息
  • 龙岩网站建设全包网站前后台套装模板
  • 黄页88企业名录佛山网站推广seo
  • 汶上网站建设微信机器人