Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Shortcut to Make Text Bold Opens Bookmarks on Firefox #34021

Open
thekief opened this issue Nov 21, 2024 · 10 comments · May be fixed by #34096
Open

Keyboard Shortcut to Make Text Bold Opens Bookmarks on Firefox #34021

thekief opened this issue Nov 21, 2024 · 10 comments · May be fixed by #34096
Labels
Tasked Added to the internal issue tracking

Comments

@thekief
Copy link

thekief commented Nov 21, 2024

Description:

Steps to reproduce:

  1. Open RocketChat in Firefox
  2. Press ctrl + b

Expected behavior:

The asteriks to make text bold are placed.

Actual behavior:

The asteriks to make text bold are placed and the bookmark view is opened.

Server Setup Information:

  • Version of Rocket.Chat Server: 6.10
  • License Type: n/a
  • Number of Users: n/a
  • Operating System: n/a
  • Deployment Method: n/a
  • Number of Running Instances: n/a
  • DB Replicaset Oplog: n/a
  • NodeJS Version: n/a
  • MongoDB Version: n/a

Client Setup Information

  • Desktop App or Browser Version: 6.10
  • Operating System: Linux (Endeavour OS)

Additional context

Relevant logs:

@sahayanshuman2005
Copy link

I think the issue is with the codebase of Mozilla fire fox and not Rocket chat!
You can use chrome or any other web browser to do so!

@thekief
Copy link
Author

thekief commented Nov 24, 2024

No, the issue is not with Firefox but with RocketChat. Every other application that uses ctrl + b to make text bold seems to work.

In addition, it would be very, very odd that only this very key sequence is affected. ctrl + k is used by Firefox as well as RocketChat as a shortcut for the search. This combination is properly caught by RocketChat, not opening the search bar of Firefox

@reetp
Copy link

reetp commented Dec 3, 2024

This is likely due to the Firefox shortcut for bookmark which is Ctrl+b

It doesn't affect Chrome/ium and likely not on other apps too.

The question then is do people want it overridden?

This will need to be considered by the team.

@reetp reetp added the Tasked Added to the internal issue tracking label Dec 3, 2024
@reetp
Copy link

reetp commented Dec 3, 2024

Referred to the team for comment.

@thekief
Copy link
Author

thekief commented Dec 4, 2024

@reetp please re-read my comment #34021 (comment) .

The issue with ctrl+b solely exists with RocketChat in combination with Firefox. Every other web app supporting formatting seems to work fine, just not RocketChat. In addition, other shortcuts shared by Firefox and RocketChat seem to be properly handled, e.g. ctrl + k.

It could be a underyling bug with Firefox, but in this case I would go with the flow and handle it as every other project does.

I would be very in favour for the linked PR to be merged :)

@reetp
Copy link

reetp commented Dec 4, 2024

please re-read my comment

I did.

I understand.

But essentially it is down to FF using Ctrl + b whereas other (browser) apps don't appear to.

Hence it appears in FF, and not other browsers. So FF specific.

Remember, if it is blanket disabled it's really a workaround rather than a fix and it may suit you, but not others.

Personally I've never used it in FF beyond bookmarks - the expected behaviour - and checking with my users, no one else does either. I'd be wondering what happened if that was disabled....

In any event, see my previous. This has been referred to the team. You'll have to see what they say but that might take some time.

@thekief
Copy link
Author

thekief commented Dec 5, 2024

Thank you for your answer. Regarding this "special case", do you really do not need event.preventDefault(); for key shortcuts, such as ctrl + k?

@reetp
Copy link

reetp commented Dec 5, 2024

Thank you for your answer. Regarding this "special case", do you really do not need event.preventDefault(); for key shortcuts, such as ctrl + k?

In essence, nope. But that's irrelevant.

I have already told you I have referred this to the team for comment.

You will have to wait and see what they say, or build your own version with whatever fix you want.

@thekief
Copy link
Author

thekief commented Dec 5, 2024

Thanks for sticking with me. The context of my question was that I'm thinking about potentially opening a bug ticket in Mozilla's Bugzilla.

@reetp
Copy link

reetp commented Dec 5, 2024

Worth a try!

I don't know what the outcome will be here, but it is in the right hands.

N.B. nothing moves fast at this place so the wait may be long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tasked Added to the internal issue tracking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants