Change to new keybinding, and disable original binding? #1557
Unanswered
qingshuizheng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
How to change a function to new keybinding, and disable the original keybinding?
Say, I want to bind the 'Change scroll target' keybinding to 'd', and disable the original 'cs' binding.
I have tried this, but did not work:
mapkey('d', '#2Change scroll target', function() { changeScrollTarget(); });I also tried this, but both 'd' and 'cs' exist:
map('d', 'cs'); unmap('cs');Thanks for any help and suggestion.
Zheng.
Edited: the 2nd method works. But I prefer to use the first one. Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions