Hotkey on Datatables and Property Sheets

I want to be able to set the Focus by Hotkeys to get Access to search fields of Datatable, also to enter Property Sheets editors.

How can i do this, as there have no direct “id” to access from outside.
On the other hand i would like to find out wich field actually has focus,
but in this sample i only get the datatable object. How can i find out wich Search Field i.e. cursor is in?

webix.UIManager.addHotKey("Ctrl+V", function() { 
    console.log( webix.UIManager.getFocus() );
});

And: is there support for Function Keys as written in 2014
https://forum.webix.com/discussion/1942/hot-keys-in-datatable ?

best regards,
chris

Hello Chris,

To focus search fields of a datatable, you can get to the necessary field by column id with the getFilter() method and then call its focus() method. This is true for both HTML elements and Webix controls: https://webix.com/snippet/b7b8bc25

To find out which field actially has focus, you can iterate datatable columns and apply either logic depending on the filter type: https://webix.com/snippet/248088b4.

To enter property sheet editors, please locate the focused item and pass its id to the edit() method. Check the following snippet: https://webix.com/snippet/974bbf32

As to the function key hotkeys, unfortunately, they have not been implemented.

Thank you.

As to the function key hotkeys, unfortunately, they have not been implemented.

Can you suggest a workaround for this?

Hello, I really need a way to get Function-Key events.

It works with the “onKeyPress” Events, but that event needs to be bound to single webix controls as it seems.

Any workaround for Hotkey with Function-Keys?

Thx, Chris