From 58c9dd72935e9ea4403681997bb1beb291d70bd4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 10 Apr 2009 07:11:45 -0400
Subject: [PATCH] - Fix DEL key problem in search boxes (#1485528)

---
 program/js/app.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 7f60de5..42ea5d9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1158,7 +1158,7 @@
   this.doc_mouse_up = function(e)
   {
     var model, li;
-    
+
     if (this.message_list) {
       this.message_list.blur();
       model = this.env.mailboxes;
@@ -1170,7 +1170,7 @@
     else if (this.ksearch_value) {
       this.ksearch_blur();
     }
-    
+
     // handle mouse release when dragging
     if (this.drag_active && model && this.env.last_folder_target) {
       this.set_classname(this.get_folder_li(this.env.last_folder_target), 'droptarget', false);
@@ -1299,10 +1299,13 @@
 
   this.click_on_list = function(e)
     {
+    if (this.gui_objects.qsearchbox)
+      this.gui_objects.qsearchbox.blur();
+
     if (this.message_list)
       this.message_list.focus();
     else if (this.contact_list)
-        this.contact_list.focus();
+      this.contact_list.focus();
 
     var mbox_li;
     if (mbox_li = this.get_folder_li())

--
Gitblit v1.9.1