Force keybindings header to behave differently from rows#41789
Force keybindings header to behave differently from rows#41789usernamehw wants to merge 5 commits intomicrosoft:masterfrom usernamehw:keybindings_editor_header_click_hover
Conversation
|
@usernamehw Thanks for the fix. But instead of doing some CSS hacks I would suggest to render the header separately by removing it out from the list. This will be helpful if we want to implement sorting by clicking the header |
|
Adding a header is not a problem, removing one... I got an error from "Cannot read property 'renderTemplate' of undefined"Does |
|
@usernamehw I meant to implement the header separately without making it part of List widget. |
|
@sandy081, That's exactly what I did. When you delete the header - the entire list no longer renders. Deletion from here: Removing I will push a commit then, it's just before header deletion from the list; New header is added, old header not possible to remove for me. This is not a finished version, stopped right after error encountered. |
|
@usernamehw You have to remove the code that populate header elements in the list. Ref: https://github.com/microsoft/vscode/blob/master/src/vs/workbench/parts/preferences/browser/keybindingsEditor.ts#L388 |
|
Should I close this? |
|
@usernamehw Not yet merged. May I know if your changes are ready to review? |
|
Hope so. The last commit was ~2 month ago. I don't even know if this code is working now. |
Fixes #41558
Header was reacting to L/M/R mouse clicks and touch events. Now it doesn't.
The only questionable thing is focus border around
.monaco-list:focusedwhen you click on header after input.