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

Disable keyboard controls #48

Open
shubhamsinha92 opened this issue Mar 15, 2016 · 3 comments
Open

Disable keyboard controls #48

shubhamsinha92 opened this issue Mar 15, 2016 · 3 comments

Comments

@shubhamsinha92
Copy link

Hey,

I was wondering if there is any way I could disable the keyboard controls for the v-pane. Currently when I press the space key it expands or collapses the pane. I would like to disable this feature if that's possible.

@LukaszWatroba
Copy link
Owner

Hey,

For now, it's not possible (at least without using dirty hacks) but I'll try to include it the next release.

@shubhamsinha92
Copy link
Author

Sounds good. Any suggestions for the dirty hacks?

@LukaszWatroba
Copy link
Owner

You can do something like this:

myApp.directive('vPaneHeader', function () {
  return {
    restrict: 'E',
    priority: 1,
    link: function (scope, iElement) {
      iElement.off('keydown');
    }
  }
});

Repository owner deleted a comment from leojin Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants