admin管理员组

文章数量:1123688

I am working with tabular data and I want to be able to edit individual cells by clicking on them using the editor widget that is fixed to the top of the cells in my UI (like excel or google spreadsheets). However right now I have to click on a cell and then select the editor to start editing it because it does not automatically get focused when a cell gets pressed. How can I make it so that when I click on a cell the editor is automatically focused and I can immediately start editing the content inside it.

I would also like to de focus the editor when I press enter to indicate that the editing of that cell is complete.

From what I found, people have forked Iced rs to implement focus but I was wondering if there is an easier way? If not should I be using a different GUI framework?

本文标签: How to focus texteditor in rust IcedStack Overflow