Index: CHANGELOG
===================================================================
--- CHANGELOG	(revision 4b20e2871897ad4a0e9bbb7a7b1b83cbcfa01efb)
+++ CHANGELOG	(revision e0896df54040413d382100f68788469433baa5ae)
@@ -2,4 +2,5 @@
 ===========================
 
+- Unselect pressed buttons on mouse up (#1485987)
 - Don't set php_value error_log in .htaccess but mention in INSTALL (#1485924)
 - Fix too small status/flag/attachment columns in Safari 4 (#1486063)
Index: program/js/app.js
===================================================================
--- program/js/app.js	(revision 141c9e732df32afb0ff6892b165bd72f1aac2287)
+++ program/js/app.js	(revision e0896df54040413d382100f68788469433baa5ae)
@@ -23,4 +23,5 @@
   this.labels = new Object();
   this.buttons = new Object();
+  this.buttons_sel = new Object();
   this.gui_objects = new Object();
   this.gui_containers = new Object();
@@ -1258,4 +1259,12 @@
       list.draglayer.hide();
     }
+    
+    // reset 'pressed' buttons
+    if (this.buttons_sel) {
+      for (var id in this.buttons_sel)
+        if (typeof id != 'function')
+          this.button_out(this.buttons_sel[id], id);
+      this.buttons_sel = {};
+    }
   };
 
@@ -3547,4 +3556,5 @@
             elm.className = button.sel;
         }
+        this.buttons_sel[id] = command;
       }
     }
