Search shortcut opens Quick Find on Firefox

AI-generated summary

The discussion revolves around a bug where pressing the ‘/’ key on Firefox opens both Discourse’s internal search and Firefox’s in-page search simultaneously. Users P16, TechnoBear, and rriemann confirm the issue across different Firefox versions and operating systems. fefrei initially couldn’t reproduce it but later confirmed the bug. rriemann notes that other shortcuts like Ctrl+Shift+S also trigger both searches, and references a recent code change. sam acknowledges the conflict and plans to fix it, while jomaxro explains the difficulty in finding universally compatible keyboard shortcuts. sam suggests using Ctrl+Alt+F as a potential solution.

Not sure if this has been covered before, but pressing / to open the search box on Discourse also opens Quick Find on Firefox. Can we change the key to something else?

Are you saying that the shortcut opens both the Discourse-internal search box and Firefox’s in-page search at the same time (which I cannot reproduce), or that Discourse hijacks the shortcut so it only opens Discourse’s internal search (which is expected behavior)?

I can reproduce that, in Firefox 46.0.1 on Ubuntu Gnome 16.04.

إعجاب واحد (1)

Oops. Actually, I can reproduce it too, I was just looking in the wrong spot (Chrome really got me used to the top-right corner) :blush:

3 إعجابات

I’m on Firefox 51.0.1 (64-bit) installed on opensuse and can reproduce this bug.

Actually, quick search opens for all shortcuts :confused:

I am using Firefox nightly v57.0.a1

When I press /, both Firefox and Discourse search open.

When I press Ctrl+Shift+s, then the Firefox Webtool Debugger and the Discourse search open.

Some refactoring has been done recently though.

https://github.com/discourse/discourse/commit/889b99552aa8d5bbf61b458391f3125c31f42bb0

إعجاب واحد (1)

ouch, did not test that this does not clash with firefox… will see if I can properly hijack it.

Why was Ctrl+Shift+s introduced? Are there any other apps using that combo for search? What about ctrl+F for find?

It came up here https://meta.discourse.org/t/how-about-mentioning-topic-feature/7350/37?u=jomaxro

Short answer, finding keyboard shortcuts that work in all browsers and all keyboards is hard!

3 إعجابات

I think we ended up picking ctrlaltf which seems to be holding up.

إعجابَين (2)