ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: pranit@srcomsec on November 08, 2022, 03:29:37 pm
-
We are working on a grid that requires, multiple combinations of Hotkeys, such as 'Shift + F2' or 'Ctrl + Enter', which we are not being able to do currently. Also if we are using 'F1', 'F3' or 'F5' hotkey, the browsers functions for these keys are also being run such as 'F1' also runs the browser help or 'F5' reloads the page.
Is there a workaround for this?
Thanks
-
Currently pqgrid doesn't use or support any hot key.
-
Thank you for your quick response.
I mean keypress (beforeCellKeyDown) event with F1 is working with the grid but it will also open the browser help window.
Can we stop opening the browser help window when the user clicks on the F1 key?
Let me know if you have any workaround solution.
-
you can add this in the event listener
beforeCellKeyDown: function(evt, ui){
if( evt.keyCode is equal to keycode for F1 ){
//.....your custom action...
evt.preventDefault();
}
},
-
Using the keypress (beforeCellKeyDown) event we are only being able to capture single keys such as {F1}, {F2}, {Enter}.
But we are not being able to capture combo keypress such as {Ctrl} + {F1}
Kindly look into this
-
ctrl key can be checked by evt.ctrlKey
so you can combine both the conditions.
-
Thanks for your suggestion, it is working fine.