Medium.js icon indicating copy to clipboard operation
Medium.js copied to clipboard

Prevent event

Open pavelivanov opened this issue 9 years ago • 1 comments

Hi, I'm trying to prevent pressing 'enter'. Here is what I'm doing:

keyContext: {
    enter: function(event) {
        event.preventDefault();
        return false;
    }
}

As I understand from docs I need 'return false;' only. But it doesn't work for me..

pavelivanov avatar Jul 31 '15 16:07 pavelivanov

Are you trying to do this on an instance where the mode in 'inline'? I can't get it to work unless the mode is no inline.

ShirajG avatar Dec 12 '16 19:12 ShirajG