View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009221 | mantisbt | feature | public | 2008-06-03 12:55 | 2008-09-17 07:23 |
Reporter | Janko | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0009221: Ctrl+Enter == submit in any textarea | ||||
Description | It would be great, if I can submit directly in textarea (ex. add new comment) with Ctrl+Enter keyboard combo. | ||||
Tags | patch | ||||
I'm not a JS-expert, but this works fine in Firefox 2 under GNU/Linux with bugnote add textareas. var notebox = document.getElementById('bugnote_text') || false; var ctrl = false; This works only if first child element of div id `bugnote_add_open' is <form> (default theme is good). |
|
I made a few modifications to Janko's submission to apply to all text areas and forms.
|
|
Hi bbryant, |
|
I had latency and race condition problems with the previous solutions. Sometimes if I type too fast, simple "enter" was enough to trigger the event. So here it the modified version:
Tested under Firefox 2 under GNU/Linux. |
|