What I’m trying to do
I am trying to get keyboard events to work within a TextFileView that are also used within the Obsidian Hotkeys. I have a custom search function within my TextFileView that I want to use the normal Ctrl+F but this is bound within Hotkeys in Obsidian to search files. The Hotkey Binding blocks the keyboard event firing on the document in my TextFileView. Removing the Hotkey works but I would like to have the hotkey work as normal but still allow me to use my hotkey for the keyboard event within my TextFileView.
Things I have tried
I tried create a event listener on the base of my TextFileView bit this is blocked by the Hotkeys firing first. I verified when using bound hotkeys the event never fires but fires when key combinations that are not bound to hotkeys show up correctly.
I have tried finding a way to temporarily unbind the hotkey from the search command while my active view is my TextFileView to allow both but had no luck finding how to disable and enable the given hotkey/command programmatically.
I tried to create a new Command specific to my extension to also bind the Ctrl+F to within obsidian but either its conflicting or the keyboard event is not firing properly when I try to dispatch it to the document element.