11
Help for ParamQuery Pro / Re: Is there an option to decide arrow key semantics during edit
« Last post by paramvir on June 05, 2026, 03:14:54 pm »Please check this example:
https://paramquery.com/pro/demos/key_navigation
https://paramquery.com/pro/demos/key_navigation
Code: [Select]
editorKeyDown(evt, ui) {
if (globalEditByPress) {
let c1, r1;
//check left and right key with key names
if (evt.key == "ArrowRight") {
c1 = this.getNextVisibleCI(ui.colIndx + 1);
r1 = ui.rowIndxPage
} else if (evt.key == 'ArrowLeft') {
c1 = this.getPrevVisibleCI(ui.colIndx - 1);
r1 = ui.rowIndxPage
} else if (evt.key == 'ArrowUp') {
r1 = this.getPrevVisibleRIP(ui.rowIndx);
c1 = ui.colIndx
} else if (evt.key == 'ArrowDown') {
r1 = this.getNextVisibleRIP(ui.rowIndx);
c1 = ui.colIndx
}
if (r1 != null && c1 != null) {
this.focus({
rowIndxPage: r1,
colIndx: c1
});
this.Range({
r1,
c1
}).select();
return false; //to prevent default handing of keys b
}
}
},

Recent Posts