搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to override detected preferences in about:config

more options

I have a Sony laptop with a touch screen and windows 10 running Firefox 53.03. Firefox's about:config detects the following preference:

ui.osk.debug.keyboardDisplayReason userset string IKPOS: Keyboard presence confirmed.

I want to override it to be: ui.osk.debug.keyboardDisplayReason userset string IKPOS: Touch screen not found.

I have tried creating a user.js with the following content: user_pref("ui.osk.debug.keyboardDisplayReason", "IKPOS: Touch screen not found."); but about:config does not change.

If I go into the device manager and disable the touchscreen, then I get the correct preference and Firefox works correctly, but I'd like to keep the touchscreen enabled.

Thanks. Zig

I have a Sony laptop with a touch screen and windows 10 running Firefox 53.03. Firefox's about:config detects the following preference: ui.osk.debug.keyboardDisplayReason userset string IKPOS: Keyboard presence confirmed. I want to override it to be: ui.osk.debug.keyboardDisplayReason userset string IKPOS: Touch screen not found. I have tried creating a user.js with the following content: user_pref("ui.osk.debug.keyboardDisplayReason", "IKPOS: Touch screen not found."); but about:config does not change. If I go into the device manager and disable the touchscreen, then I get the correct preference and Firefox works correctly, but I'd like to keep the touchscreen enabled. Thanks. Zig

所有回覆 (2)

more options

Did you try to disable touch screen support in Firefox?

  • ui.osk.enabled = false

The Debug prefs are created by the relevant code.

more options

cor-el said

Did you try to disable touch screen support in Firefox?
  • ui.osk.enabled = false

Thanks, just tried the above and no joy.