Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-22440

Windows key toggle left-hand navigation bar in Documentation theme.

      Description

      When using the Documentation theme, by default "[" will toggle the left-hand navigation bar. However, the Windows key between the Ctrl and Alt will toggle left-hand navigation bar also.

      While this does not effect the functionality of Confluence, but it is actually quite annoying, as some users will use the Windows key to bring up the start menu, and at the same time, toggle the navigation bar.

      This happen in:

      • Firefox
      • Internet Explorer
      • Chrome


      Steps To Reproduce
      1. Set the theme to Documentation theme, either globally or space.
      2. Visit any page and press the Windows key in between Ctrl and Alt.
      3. Watch the magic happen.


      Workaround

      Changing the assigned shortcut key resolves this issue. To do so, modify the below property in C:\confluence\data\bundled-plugins\confluence-keyboard-shortcuts-3.5.5.jar\atlassian-plugin.xml

      <description key="admin.keyboard.shortcut.toggle.navigation.panel.desc">Toggle Navigation Panel</description>
              <shortcut>[</shortcut>
      

      Replace [ with * (or whatever your desired shortcut key is).

      Save the modified jar file and re-package C:Program Files\Atlassian\confluence-3.5.5-std\confluence\WEB-INF\atlassian-bundled-plugins.zip with the modified confluence-keyboard-shortcuts-3.5.5.jar.

      It is important to re-package modifications in to atlassian-bundled-plugins.zip, as any discrepancies between installed jar files and this file would be overwritten with content of this zip file.

            [CONFSERVER-22440] Windows key toggle left-hand navigation bar in Documentation theme.

            tin.pham the docs are correct - the '[' shortcut should still work. If it is not working for you, raise a support request as it may be something specific to your instance.

            Mark Hrynczak (Inactive) added a comment - tin.pham the docs are correct - the '[' shortcut should still work. If it is not working for you, raise a support request as it may be something specific to your instance.

            phamti added a comment -

            I am using Confluence 5.1 default theme. It's fixed, but what is the new shortcut to hide the left-hand navigation bar? Checked the online docs and help and it still points to using the "[" key.

            phamti added a comment - I am using Confluence 5.1 default theme. It's fixed, but what is the new shortcut to hide the left-hand navigation bar? Checked the online docs and help and it still points to using the "[" key.

            That's funny, I thought it was a feature, have been using it for two years now.

            Damian Nowak added a comment - That's funny, I thought it was a feature, have been using it for two years now.

            David Rizzuto added a comment - - edited

            Reopening to deal with some keyboard shortcut issues caused by the library upgrade.

            David Rizzuto added a comment - - edited Reopening to deal with some keyboard shortcut issues caused by the library upgrade.

            Hi Shane,

            As Denise stated above for technical reasons we were only able to fix this for the next upcoming version of Confluence, version 5.0, which will be released in the next couple of months.

            David Rizzuto added a comment - Hi Shane, As Denise stated above for technical reasons we were only able to fix this for the next upcoming version of Confluence, version 5.0, which will be released in the next couple of months.

            Shane Day added a comment -

            If this is fixed, what version is it fixed in?

            Shane Day added a comment - If this is fixed, what version is it fixed in?

            Hi notafake and all other interested parties. Thanks for your comments above, it's very useful for us to understand how this issue is impacting our customers! I wanted to let you all know that we are actively looking into this issue at the moment. We have done some preliminary investigation that indicates that this is a problem with our version of jquery.hotkeys in combination with Windows.

            The library treats key codes as character codes which in the case of the Windows key (keycode: 91) results in the character "[". On mac this is not a problem with the command key because the lib also detects that the metaKey was pressed and interprets it as "Meta + [" (if we had something bound to that combination, it would have been triggered). On Windows, however, the metaKey property is false (a bug) and therefore it believes we simply pressed the '[' key (which toggles the sidebar).

            To resolve this, we would have to upgrade the plugin atlassian-keyboard-shortcuts to version 1.2. Currently Confluence ships with version 1.0, which brings it's own version of jquery.hotkeys and doesn't rely on Atlassian's shared code library (where the meta-key bug is fixed). Therefore, upgrading to 1.2 will resolve this issue.

            However. because this involves some non-trivial changes to Confluence's libraries to fix properly, we're not able to release this in a point release, so will be investigating how we can make these changes in a major release. As always there are potential complications and unknown factors that mean this may not make it into the next major release, but please be assured that this is definitely on our radar to fix, and we'll keep you up to date with our progress.

            Hope this information is helpful, and hope everyone has a great Christmas!

            Kind regards,
            Denise
            Atlassian Support - Sydney

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - Hi notafake and all other interested parties. Thanks for your comments above, it's very useful for us to understand how this issue is impacting our customers! I wanted to let you all know that we are actively looking into this issue at the moment. We have done some preliminary investigation that indicates that this is a problem with our version of jquery.hotkeys in combination with Windows. The library treats key codes as character codes which in the case of the Windows key (keycode: 91) results in the character "[". On mac this is not a problem with the command key because the lib also detects that the metaKey was pressed and interprets it as "Meta + [" (if we had something bound to that combination, it would have been triggered). On Windows, however, the metaKey property is false (a bug) and therefore it believes we simply pressed the '[' key (which toggles the sidebar). To resolve this, we would have to upgrade the plugin atlassian-keyboard-shortcuts to version 1.2. Currently Confluence ships with version 1.0, which brings it's own version of jquery.hotkeys and doesn't rely on Atlassian's shared code library (where the meta-key bug is fixed). Therefore, upgrading to 1.2 will resolve this issue. However. because this involves some non-trivial changes to Confluence's libraries to fix properly, we're not able to release this in a point release, so will be investigating how we can make these changes in a major release. As always there are potential complications and unknown factors that mean this may not make it into the next major release, but please be assured that this is definitely on our radar to fix, and we'll keep you up to date with our progress. Hope this information is helpful, and hope everyone has a great Christmas! Kind regards, Denise Atlassian Support - Sydney

            Any update here?

            sandro gehrig added a comment - Any update here?

            Same here. Please fix it.

            Felix Hammann added a comment - Same here. Please fix it.

            This is quite annoying, especially Windows 7 and later when using Winkey + Left and Winkey + Right to manage windows across multiple monitors.

            Todd Aspeotis added a comment - This is quite annoying, especially Windows 7 and later when using Winkey + Left and Winkey + Right to manage windows across multiple monitors.

              drizzuto David Rizzuto
              hhloi HengHwa Loi [Atlassian]
              Affected customers:
              37 This affects my team
              Watchers:
              34 Start watching this issue

                Created:
                Updated:
                Resolved: