mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Mail: Remove mail-only key handler, it was double-sending
This commit is contained in:
parent
5cb26394a7
commit
ad3321c438
@ -396,8 +396,6 @@ app.classes.mail = AppJS.extend(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Init key handler
|
|
||||||
this.init_keyHandler();
|
|
||||||
|
|
||||||
// Set focus on To/body field
|
// Set focus on To/body field
|
||||||
// depending on To field value
|
// depending on To field value
|
||||||
@ -5075,31 +5073,6 @@ app.classes.mail = AppJS.extend(
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Keyhandler for compose window
|
|
||||||
* Use this one so we can handle keys even on inputs
|
|
||||||
*/
|
|
||||||
init_keyHandler: function()
|
|
||||||
{
|
|
||||||
jQuery(document).on('keydown', function(e) {
|
|
||||||
// Translate the given key code and make it valid
|
|
||||||
var keyCode = e.which;
|
|
||||||
keyCode = egw_keycode_translation_function(keyCode);
|
|
||||||
keyCode = egw_keycode_makeValid(keyCode);
|
|
||||||
|
|
||||||
// Only go on if this is a valid key code - call the key handler
|
|
||||||
if (keyCode != -1)
|
|
||||||
{
|
|
||||||
if (egw_keyHandler(keyCode, e.shiftKey, e.ctrlKey || e.metaKey, e.altKey))
|
|
||||||
{
|
|
||||||
// If the key handler successfully passed the key event to some
|
|
||||||
// sub component, prevent the default action
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check sharing mode and disable not available options
|
* Check sharing mode and disable not available options
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user