Unable to prevent keyboard events of copy/paste annotation

I have used this method of hotkey.
But keyboard event is getting fired even on preventDefault.

instance.hotkeys.on('ctrl+v, command+v', e => {
 e.preventDefault();
  });

instance.hotkeys.on('ctrl+c, command+c', e => {
 e.preventDefault();
  });

How can I prevent this action?

Hi,

Try using off instead of on

instance.hotkeys.off('ctrl+v, command+v')

Thanks!