On 04/08/2011 12:53 PM, Michael M Slusarz wrote:
> Quoting Derek Chen-Becker <de...@chen-becker.org>:
> 
>> On 04/06/2011 11:38 AM, Michael M Slusarz wrote:
>>>> Yes, that seems to work, so is there any way to make it the default
>>>> behavior for just "delete"? Other than me hand-editing the PHP code,
>>>> that is. I can do that, I just hate to tweak things for what seems like
>>>> a UI preference.
>>>
>>> Sounds like:
>>> http://bugs.horde.org/ticket/7152
>>
>> Updated     01/08/09 (818 days ago)
>>
>> :(
> 
> Which means that it is not high on the radar of any admin.  But if
> anyone provided a patch, it would be looked at quickly.
> 
Sadly work is conspiring against me getting to code up a preference for
it, but if anyone else wants the same functionality you can just apply
the attached diff to horde/imp/js/dimpbase.js and it will make deleting
automatically move to the next message.

Derek
*** dimpbase.js.orig	2011-04-21 14:19:25.000000000 -0600
--- dimpbase.js	2011-04-21 14:19:40.000000000 -0600
***************
*** 2025,2031 ****
          case Event.KEY_BACKSPACE:
              r = sel.get('dataob');
!             if (e.shiftKey) {
!                 this.moveSelected((r.last().VP_rownum == this.viewport.getMetaData('total_rows')) ? (r.first().VP_rownum - 1) : (r.last().VP_rownum + 1), true);
!             }
              this.deleteMsg({ vs: sel });
              e.stop();
--- 2025,2029 ----
          case Event.KEY_BACKSPACE:
              r = sel.get('dataob');
!             this.moveSelected((r.last().VP_rownum == this.viewport.getMetaData('total_rows')) ? (r.first().VP_rownum - 1) : (r.last().VP_rownum + 1), true);
              this.deleteMsg({ vs: sel });
              e.stop();
-- 
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to