How to disable arrow keys when editing an element
How to disable arrow keys when editing an element
Hey all,
I'm trying to implement the "KeyTable" spreadsheet navigation tool but am having problems with formatting while in an element. By default, it erases all of the data in the element when I start typing, but I would like for it to maintain the current data and append to it whatever is typed in.
Also, while in an element that I'm editing, I want for the arrow keys to traverse the data itself, not go to the next element. I've done:
editor
.on('open', function(e, mode, action) {
if(mode === 'main') {
table.keys.disable();
}
})
.on('close', function() {
table.keys.enable();
});
but it doesn't seem to disable the keys as I would like.
Suggestions? Hints?