From ad3321c438170f69f0825822f9ab3bd2ecb96bd6 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 8 Nov 2023 13:36:33 -0700 Subject: [PATCH] Mail: Remove mail-only key handler, it was double-sending --- mail/js/app.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 9af0e822ee..833751a773 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -396,8 +396,6 @@ app.classes.mail = AppJS.extend( return false; } }); - // Init key handler - this.init_keyHandler(); // Set focus on To/body field // 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 *