how to use KeyCode properly to ignore Ctrl+F ? #4505
Replies: 1 comment 4 replies
-
|
@parsalotfy you should be able to get it to work when focusing the datagrid on page load. The component only needs to be the active element to get it to work. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my usecase, I have a page with a datagrid. outside of datagrid there is empty space.
I want to implement a shortcut, such that when user pressed ctrl+F, it overwrite the default browser search box and show mine.
I read this issue as well.
my problem is that when I use KeyCode component, instead of global, it only listen to keyboard when user clicks on components inside the tags.
but it is not user friendly. user just opens the webpage, he sees the grid, and he press ctrl+F
and nothing happens, because focus is on nothing.
so I MUST use global. am I wrong? please correct me.
In global on the other hand, I don't know how I can ignore ctrl+F specifically, such that ctrl+c and ctrl+a and also c and a buttons continue working like before. since they are not ignored.
the ignore array works like OR and not like AND.
Thank you for your input.
Beta Was this translation helpful? Give feedback.
All reactions