revert: remove `Cmd+D` to do any delete action

This commit is contained in:
Lykin 2024-05-20 00:47:14 +08:00
parent 3c43f960c3
commit f536b0f23b
2 changed files with 0 additions and 14 deletions

View File

@ -133,23 +133,14 @@ const onKeyShortcut = (e) => {
case 'Delete': case 'Delete':
onDelete() onDelete()
return return
case 'd':
if (e.metaKey && isMacOS()) {
onDelete()
}
return
case 'F5': case 'F5':
onReload() onReload()
return return
case 'r': case 'r':
if (e.metaKey && isMacOS()) { if (e.metaKey && isMacOS()) {
onReload() onReload()
} }
return return
case 'F2': case 'F2':
onRename() onRename()
return return

View File

@ -355,11 +355,6 @@ const onKeyShortcut = (e) => {
case 'Delete': case 'Delete':
handleKeyDelete() handleKeyDelete()
break break
case 'd':
if (e.metaKey && isMacOS()) {
handleKeyDelete()
}
break
case 'F5': case 'F5':
handleSelectContextMenu('value_reload') handleSelectContextMenu('value_reload')
break break