Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Programmatically cancel editing #12

Open
likentong opened this issue Aug 26, 2014 · 1 comment
Open

Programmatically cancel editing #12

likentong opened this issue Aug 26, 2014 · 1 comment

Comments

@likentong
Copy link

Hi, I have a scrolling table and would like to disable editing when the user scroll.
Is there a way to disable editing programmatically besides simulate "Esc" key ?

@gamekid
Copy link

gamekid commented Aug 29, 2014

I couldn't find a way... I used this.

$(document).on('scroll',function(){
var e = jQuery.Event("keydown");
e.which = 27;
$(':focus').trigger(e);
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants