There seems to be no keydown event associated with jointjs paper. How we can capture such event ?
Solutions that I tried:
Solution 1: Capture keydown on the div element (which holds paper). It didn't work.
$('#myholder).on('keydown', (e) => {
console.log(e.which);
});
Solution 2: It seems a bit tough.
$(document).on('keydown', (e) => {
if( the previous event fired in 'blank:pointerdown' on paper and no other event is fired after that [which is equivalent to keydown on paper]) {
console.log(e.which);
}
});