You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem using memos. When modifying the interface of existing memos, pressing the exit key will cancel the editing and return to the original interface. I want to prevent the exit
document.addEventListener('keydown', function(event) {
if (event.keyCode === 27) {
event.preventDefault();
// event.stopPropagation();
event.stopImmediatePropagation();
alert('ESC key has been disabled');
} }, true);
It can be partially blocked.,Press esc when you enter chinese pinyin or it will quit.,Is there a way to fully organize it by JavaScript code?
tks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a problem using memos. When modifying the interface of existing memos, pressing the exit key will cancel the editing and return to the original interface. I want to prevent the exit
document.addEventListener('keydown', function(event) {
if (event.keyCode === 27) {
event.preventDefault();
// event.stopPropagation();
event.stopImmediatePropagation();
alert('ESC key has been disabled');
} }, true);
It can be partially blocked.,Press esc when you enter chinese pinyin or it will quit.,Is there a way to fully organize it by JavaScript code?
tks!
Beta Was this translation helpful? Give feedback.
All reactions