Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Shortcuts #91

Open
santonelli opened this issue Jul 13, 2021 · 1 comment
Open

Keyboard Shortcuts #91

santonelli opened this issue Jul 13, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@santonelli
Copy link
Collaborator

Summary

A clear and concise description of the requested feature.

Acceptance Criteria

A checklist of what's required to consider this feature as done.

  • It's done when...

Additional context#

Add any other context or screenshots about the feature request here.

@santonelli santonelli added the enhancement New feature or request label Jul 13, 2021
@santonelli santonelli self-assigned this Jul 13, 2021
@santonelli
Copy link
Collaborator Author

document.onkeydown = keydown;
function keydown(evt){
  if (!evt) evt = event;
  if (evt.ctrlKey && evt.keyCode==83){
    $('#portal-navigation-cover').fadeIn('500');
    $('body').attr('data-with-sidebar', 'true');
  }
  if (evt.keyCode==27){
    $('#portal-navigation-cover').fadeOut('500');
    $('body').attr('data-with-sidebar', 'false');    
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant