Why does the windows key exhibit the same behavior as ] key in Documentation themed space in Confluence?

My company has Confluence 4.1 installed. I am observing that in Firefox 15 pressing the windows key on my keyboard has the same effect as pressing the [ when viewing pages in spaces with the documentation layout, which is to"Toggle the left-hand navigation bar" according to the following confluence documentation page:


I did not find any known bugs after a few searches with keywords from this page: https://www.atlassian.com/en/search?query=

I'm happy to provide more information. This isn't quite that big of a deal but it is annoying. I figured I'd ask here before writing a new bug report.

4 answers

1 accepted

0 votes
Answer accepted

That's a bug for that:


Please vote in it :)

Right, sorry, cleaning this up and accepting the correct answer. Hopefully people will see this answer so there aren't any future duplicates. Thanks again.

The Windows key being pressed resolves to a keyCode/which value of 91. (http://www.javascripter.net/faq/keycodes.htm). The code in G.handler tries to resolve all keyCodes using String.fromCharCode(). String.fromCharCode(91) then gives us '[', which is why it's triggering the '[' shortcut.

Most of the other special keys are lucky enough to not resolve to a clashing symbol using String.fromCharCode(), but I'm personally not a proponent of Luck-Based Programming.

Also, some more thoughts on String.fromCharCode: http://stackoverflow.com/a/5829387

This happens to me on Google Chrome too. It's definitely a bug. very annoying. Please file a bug report. Happy to vote.

Thanks Harry for the confirmation. I've gone ahead and created the issue here: https://support.atlassian.com/browse/CSP-88445

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

278 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you