Skip to content

Prevent Meta+K default behaviour in rich text editors

Shreya Agarwal requested to merge gitlab-community/gitlab:bugfix-419094 into master

What does this MR do and why?

Closes #419094 (closed)

Prevent Meta+K default behaviour in rich text editors

This keybind is for adding links but is also the shortcut for search bar focus in Firefox, so it prevents the default browser behaviour (for all browsers) while text is selected to improve UX.

Screenshots or screen recordings

Before After
before afterrr

How to set up and validate locally

  1. Open any rich text editor (issue comment, MR comment, etc.) in Firefox (since it is currently affecting only Firefox)
  2. Select a piece of text and try the Ctrl(or Cmd)+K keybind.

MR acceptance checklist

Edited by Shreya Agarwal

Merge request reports