Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

In my application using ctrl+shift+c keyboard shortcut to add new content on the page.

more options

My application runs on the browser and allows users to add contents on the page using ctrl+shift+c keyboard shortcut. However this shortcuts used by firefox developer tool to launch page inspector. I tried to disable the shortcuts using :about:config and restarted the browser still facing the same issue. How can I change/disable these shortcuts (ctrl+shift+c and ctrl+shift+e ) so that my application will run as expected. This issue occurred recently when browser got updated to version 66.0.3. Previously working version was 64.0 Thanks, Prashant

My application runs on the browser and allows users to add contents on the page using ctrl+shift+c keyboard shortcut. However this shortcuts used by firefox developer tool to launch page inspector. I tried to disable the shortcuts using :about:config and restarted the browser still facing the same issue. How can I change/disable these shortcuts (ctrl+shift+c and ctrl+shift+e ) so that my application will run as expected. This issue occurred recently when browser got updated to version 66.0.3. Previously working version was 64.0 Thanks, Prashant

Tất cả các câu trả lời (1)

more options

Hi Prashant, did you test in Firefox 65?

Firefox 65 stopped sending the page a keypress event for non-printing keyboard combinations. If you want to intercept them, you need to look at one or both of the other key events, keydown and keyup. More details here:

This page has an example of how to intercept Ctrl+b (normally opens the Bookmarks Sidebar):

https://www.jeffersonscher.com/res/keyvents.html


Firefox 66 enabled window.event for cross-browser compatibility but this may break some scripts that do not expect Firefox to support that object. More details here:

If you can find where your code relies on the old behavior, hopefully you can update that to work with both Firefox's legacy behavior (to support Extended Support Release users) and its new behavior.

Meanwhile, this has broken some big name applications, so Firefox has an exceptions list. It's not very practical for you to explain to your users how to use that, but I'll describe it anyway in case you see a way to use it:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste hack and pause while the list is filtered

(3) The dom.keyboardevent.keypress.hack.use_legacy_keycode_and_charcode preference lists servers on which Firefox will send scripts in the page older style keyboard events. To add your own server, double click this preference, add the host name at the beginning followed by a comma (no extra space) and click OK.