vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.64k stars 730 forks source link

Editable grids: 'Meta' (aka 'Win key') and 'ContextMenu' key-presses begin cell-editing AND clear the cell text #2440

Open metaleap opened 11 months ago

metaleap commented 11 months ago

At least using my Linux Chromium v115.0.5790.98.

My current workaround to prevent this is:

myGrid.on('keydown', (evt) => {
    if (['Meta', 'ContextMenu'].includes(evt?.detail?.originalEvent?.key)) {
        evt.isCancelled = true
        evt.preventDefault()
    }
})