angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

start/stop listening for all keys

Open karanba opened this issue 9 years ago • 6 comments

there need a way to say stop/continue for listening. For example if there is an modal already on screen I do not want to enable other shortcuts do action..

karanba avatar Feb 23 '16 10:02 karanba

Agree, It will be nice to have something like isolate shortcuts, which will disable other shortcuts

maksimr avatar Apr 12 '16 17:04 maksimr

you can unbind and then rebind keys form the scope

mkoczorowski avatar Apr 22 '16 11:04 mkoczorowski

+1. It will be very nice to disable hotkeys when a dialog is open so the hotkeys won't trigger callbacks which affect the UI under the dialog backdrop.

juliadou avatar May 02 '16 18:05 juliadou

+1. have same problem with modal popup, some key used are used too in backdrop.

newzen avatar May 17 '16 22:05 newzen

There are methods pause() and unpause() in API

vir2bille avatar May 27 '16 09:05 vir2bille

Is there a way to overcome this issue? since my hotkeys bounded to scope and controllers scope will not be destroyed since there are not route change while opening a stateless dialog, it will still run the hotkeys call back when the dialog is open and separate set of hotkeys been register on dialog (cheetshet display hotkeys of dialog as well as the page on top of which the dialog is currently open). expected behavior is to only have dialog related hotkeys and page related hotkeys need to be unregistered or disabled

sohail85 avatar Aug 28 '16 12:08 sohail85