fix(sessions): prevent Backspace/Delete from deleting session while renaming (#4662)
This commit is contained in:
parent
c062c27648
commit
888e25624f
1 changed files with 1 additions and 0 deletions
|
|
@ -1938,6 +1938,7 @@ async function _onSessionListKeydown(e) {
|
|||
}
|
||||
|
||||
if (e.key === 'Delete' || e.key === 'Backspace') {
|
||||
if (item.querySelector('.session-rename-input')) return;
|
||||
e.preventDefault();
|
||||
const sid = item.dataset.sessionId;
|
||||
const s = sessions.find(x => x.id === sid);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue