IgniteUI / igniteui-dockmanager

Ignite UI Dock Manager Web Component provides means to manage the layout of your application.
Other
38 stars 0 forks source link

FR: How to disable/override keyboard navigation on `igc-dockmanager`? #99

Closed luiscla27 closed 1 month ago

luiscla27 commented 4 months ago

Hi!

This a Feature Request to make the KEYBOARD NAVIGATION of DockManager configurable. Ideally, the shortcuts used should be configurable by the developer implementing the component, and even disable them! like instead of using ctrl + shift + arrow left, maybe that shortcut is already occupied, and I want to use another one.

I'm using the Angular implementation of Dock Manager, also read the web-component docs. But, I couldn't find a way to turn off the keyboard navigation:

I want to disable all of it.

The reason is that I'm using it to put text boxes inside of it, and ctrl + shift + arrow left/right is also a shortcut used by certain users to move the cursor to words around the textbox. This issue had happened in other products, and usually occurs due to bugs, this are some examples:

The reason I'm reporting this as a FR, instead of a BUG, is because that it seems to me that this behaviour was intended, as maybe you didn't acknowledge my use case to exist at all. Being that, to put text boxes inside the dockable panels.

Please let me know if I should move this the Angular repo.

gedinakova commented 3 months ago

Hello @luiscla27, Thank you for the detailed report of the issue you've encountered.

Currently the DockManager exposes the "disableKeyboardNavigation" property which can be used to disable keyboard navigation as a whole as shown in this sample application.

If disabling all shortcuts is not exactly the desired behavior, for more detailed handling of keyboard interactions I would suggest you handle the keydown event and fine-tune the behavior to match your application's needs.

For more details, please refer to this issue which actually led to adding the "disableKeyboardNavigation" property.

Should you need any further assistance, please, do not hesitate to let us know! Thanks in advance.

luiscla27 commented 1 month ago

Thank you