mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
deactivated autofocusing of a mail on "del" key press
This commit is contained in:
parent
22a39c6a39
commit
8750a9801c
@ -253,6 +253,8 @@ export function egw_keyHandler(_keyCode, _shift, _ctrl, _alt)
|
|||||||
// If the current application doesn't have a focused object,
|
// If the current application doesn't have a focused object,
|
||||||
// check whether the application object manager contains an object
|
// check whether the application object manager contains an object
|
||||||
// with the EGW_AO_FLAG_DEFAULT_FOCUS flag set.
|
// 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;
|
let egwActionObject:EgwActionObject = null;
|
||||||
for (const child of appMgr.children)
|
for (const child of appMgr.children)
|
||||||
{
|
{
|
||||||
@ -272,6 +274,7 @@ export function egw_keyHandler(_keyCode, _shift, _ctrl, _alt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (focusedObject)
|
if (focusedObject)
|
||||||
{
|
{
|
||||||
// Handle the default keys (arrow_up, down etc.)
|
// Handle the default keys (arrow_up, down etc.)
|
||||||
|
Loading…
Reference in New Issue
Block a user