Skip to content

Keyboard layout change not working on first attempt

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Currently, the default keyboard layout of the web IDE is us (bottom right). Some users would prefer changing the layout but there seems to be a bug in doing so.

Though not easily reproducible, at times if you want to switch to a different layout in the list, upon clicking the layout, it still remains as us. Sometimes you have to pick a different layout, then pick the desired layout for it to change.

I have tested this out with a random GitLab version (16.3.4) but this is also reproducible in GitLab.com

Steps to reproduce

  • Open the web IDE, not that the default is US.
  • Try and select fr.
  • Note that sometimes, fr is not selected as the layout (bottom right)
  • To solve it, pick a different layout, for example de, then pick fr. The layout will switch to de then fr.
  • sometimes it needs a page refresh to select the correct layout on the first try.

What is the current bug behavior?

Desired layout is not selected on the first attempt. One needs to select another layout in the list, then select the desired layout e.g. from us to de to desired layout (fr).

What is the expected correct behavior?

Desired layout should be selected on the first attempt

Relevant logs and/or screenshots

Video recording of behavior:

ide-layout-issues

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by 🤖 GitLab Bot 🤖