CTRL-C triggers "Create topic" shortcut in Firefox Nightly

Description

Starting over the last few days, Discourse will open the New Topic composer when the user presses CTRL+C.

Pressing only C also triggers the New Topic composer as expected.

Related change?

On first glance it appears to be related to:

https://github.com/discourse/discourse/commit/ff91c43087ea6895c0380faa0e171747ca5daf8e

though that’s supposed to enable SHIFT+C

Discourse info

Version v2.0.0.beta1 +202
Ubuntu 16.04 (64-bit)
Docker CE 17.12 (overlayfs2)
Bytemark Cloud VPS

What should happen

Discourse should not capture CTRL+C.

What currently happens

Discourse interprets CTRL+C as C.

Steps to replicate

  1. Press CTRL+C (or CMD+C for Mac?);
  2. Observe New Topic composer appears.

Im not familiar with the shortcut codepath, but reading the commit I see C and not shift+c, do you think this is the cause @riking ?

Oh, yeah probably. I guess I wasn’t looking too closely at the requirements for the shortcut names…

I am not having an easy time reproducing this, what browser is this on, seems to work as desired on Chrome to me.

Windows 10, Firefox Quantum (57.0.4) ,Ctrl + C copies to clipboard as expected. C opens the composer. Shift + C does nothing.

I’m hitting it with Linux 64-bit Firefox Nightly 59a1 (2018-01-21). One other person has reported the same with Firefox 57.0.4 (which triggered this report in the first place).

It does the same thing for me here on meta.discourse.org so it’s not specific to our instance, though I’ll admit it might be a browser quirk. However, the fact I encountered the same behaviour around the same time as another user makes me suspicious.

I’ll roll through some more browsers/settings tomorrow; with fresh profiles neither Chromium (63.0.3239.132) nor Firefox (57.0.4) exhibit the same behaviour for me.

Edit:

Little update: it does appear to be a browser setting. Nightly 2018-01-21 and a clean profile doesn’t exhibit the issue, but a -safe-mode start (no extensions) with my normal profile does.

Yeah we are going to need a repro here, without it we are just guessing.

4 Likes

This appears to be a quirk in some profile setting and Firefox Nightly (~2018-01-21/22). Using the same profile in 57.0.4 doesn’t exhibit the same issue.

I can’t see which setting would make this happen so it may well just be a Nightly quirk; the other user who had the issue no longer does with Firefox Nightly, so who knows…

Apologies for the noise… :persevere:


Edit, someone else just started having the issue with 59b2 (Developer). No idea what’s going on here. I’ll post back here if I can find some sort of pattern to it.


Edit, it’s a Firefox thing. I’ve just seen the same behaviour on GitHub, so “something” is sending the wrong keystrokes to the page.

1 Like

This topic was automatically closed after 30 hours. New replies are no longer allowed.