deactivated autofocusing of a mail on "del" key press

This commit is contained in:
Milan 2024-01-18 14:19:50 +01:00
parent 22a39c6a39
commit 8750a9801c

View File

@ -253,6 +253,8 @@ export function egw_keyHandler(_keyCode, _shift, _ctrl, _alt)
// If the current application doesn't have a focused object,
// check whether the application object manager contains an object
// with the EGW_AO_FLAG_DEFAULT_FOCUS flag set.
//We should never do this for the delete key(keyCode === 46 ; idx === __46__ ) as one might delete an unselected mail by mistake
if(idx !== "__46__") {
let egwActionObject:EgwActionObject = null;
for (const child of appMgr.children)
{
@ -270,6 +272,7 @@ export function egw_keyHandler(_keyCode, _shift, _ctrl, _alt)
egwActionObject.children[0].setFocused(true);
focusedObject = egwActionObject.children[0];
}
}
}
}
if (focusedObject)