Lost keyboard shortcut when implementing stylesheet code?
Asked by hgdeaton15:

We currently have stylesheet code applied to our space that limits what we are able to see since most people accessing it will not need to be poking around Confluence. The only problem is that when the code is applied, we lose *just* the keyboard shortcut to create pages. We can still do the shortcut to edit, view attachments, view labels, etc....just can't cntrl+c to create a page. Is there something in this code preventing this?

`#main-header-placeholder { `` ``display``:``none``; `` ``} `` ` `#header-precursor { `` ``display``:``none``; `` ``} ` `#main-header { `` ``display``:``absolute``;``top``:``0px``;``left``:``0px``;`` ``}` `#metadata-history-dialog-link {`` ``display``:``none``;`` ``}` `#action-copy-page-link {`` ``display``:``none``;`` ``}` `#action-move-page-dialog-link {`` ``display``:``none``;`` ``}` `#view-attachments-link {`` ``display``:``none``;`` ``}` `#view-resolved-comments {`` ``display``:``none``;`` ``}` `#action-page-permissions-link {`` ``display``:``none``;`` ``}` `#view-page-info-link {`` ``display``:``none``;`` ``}` `#view-in-hierarchy-link {`` ``display``:``none``;`` ``}` `#action-view-source-link {`` ``display``:``none``;`` ``}` `#action-view-storage-link {`` ``display``:``none``;`` ``}` `#action-export-word-link {`` ``display``:``none``;`` ``}` `#import-word-doc {`` ``display``:``none``;`` ``}` `#com-atlassian-confluence .page-metadata {`` ``display``:``none``;`` ``}` `ul.contributors-list { ``display``:``none``; ``}` `#breadcrumbs {``display``:``none``;}` `#header {``display``:``none``;}` `#likes-section {``display``:``none``;}` `#watch-content-button {``display``:``none``;}` `#labels-section {`` ``display``:``none``;`` ``}` `#shareContentLink {`` ``display``:``none``;`` ``}` `#comments-section {`` ``display``:``none``;`` ``}` `#page-favourite {`` ``display``:``none``;`` ``}` `#page-metadata-banner {`` ``display``:``none``;`` ``}` `#user-menu-link {`` ``display``:``none``;`` ``}` `#admin-menu-link {`` ``display``:``none``;`` ``}` `h``1``#title-text {`` ``display``:``none` `!important``;`` ``}` `.panel ``{ `` ``border-color``:``white``; `` ``border-style``:``none``; `` ``border-width``:``0px``; `` ``color``:``black``; `` ``margin``:``10px` `20px``; `` ``overflow``:``hidden``; `` ``padding``:``0``; ``}` `div.theme-``default` `.ia-splitter #main {`` ``margin-left``:` `0px``;``}``.ia-fixed-sidebar, .ia-splitter-``left` `{`` ``display``:` `none``;``}``div#main {`` ``margin-left``:` `0px` `!important``;``}``div#footer {`` ``margin-left``:` `0px` `!important``;``}`


Answers:
author: Stephen Sifers
body: Hello Hannah and welcome to the Community!

Thank you for providing detail into what your environment looks like and what stylesheet you have applied.

The example you provided shows there is an issue. The issue is that when you set the '#header' to 'display:none' you are in turn telling Confluence to remove this completely thus removing the shortcut "C" to create a new page within that space. When this element is hidden, you are also in turning hiding 'div.aui-nav' which controls the Space / People / Create functions within Confluence.

These elements are all part of the Confluence Fixed Headers system add-on. If your goal is to remove this header completely, you can accomplish this without needing CSS by following [How to Disable Global Fixed Header in Confluence 5.9 and Above](https://confluence.atlassian.com/confkb/how-to-disable-global-fixed-header-in-confluence-5-9-and-above-848953839.html?_ga=2.30874876.251205506.1551102735-1581346095.1546457917).

To summarize, if you remove the 'ul.aui-nav' element or any part of its hierarchy, you will disable any keyboard shortcuts associated to those buttons.

I hope this helps to clarify why your keyboard shortcut has become disabled with your CSS stylesheet being applied.

Regards,  
Stephen Sifers

comments: author: hgdeaton15
body: This was very helpful and we were able to resolve the issue. Thank you very much!


Tags: atl-adm

code

keyboard-shortcut

stylesheet