On Thu, Aug 2, 2012 at 1:13 AM, Michael M Slusarz <[email protected]> wrote:

> Quoting Michael Wing <[email protected]>:
>
>  I asked about this a few weeks back, and just got around to implementing
>> it.  This patch allows the Escape key to cancel, and the CTRL-Return to
>> send when using dimp, similar to how other desktop MUAs work.
>>
>
> This has been modified and added to IMP 6.
>
>
 I modified the original patch to allow for Command-Enter on a Mac, by
looking for e.metaKey

        case Event.KEY_RETURN:
            if (e.ctrlKey || e.metaKey) {
               if (!this.disabled) {
                  this.uniqueSubmit('sendMessage');
               }
            }
        }

Also for selecting all with CTRL-A in dimpbase.js, this allows for
COMMAND-A on a Mac

        case 97: // a
            // barton
            if (e.ctrlKey || e.metaKey) {
                this.selectAll();
                e.stop();
            }
            break;
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to