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:

https://confluence.atlassian.com/display/CONF41/Keyboard+Shortcuts

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

That's a bug for that:

https://jira.atlassian.com/browse/CONF-22440

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

344 views 20 10
Join discussion

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