# Change "onsubmit" event key from "return" key "ctrl-return"

**URL:** <https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490>\
**Category:** Rails\
**Created:** [May 8, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490 "2009-05-08T12:07:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geekyra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Post date:** [May 8, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490/1 "2009-05-08T12:07:51Z")

</div>

Hello all, r there any way to change the “return” key in form single  
line input ? For example, I want the form to submit the process using  
“ctrl-return” key instead of “return” key because I want to use  
“return” key just to add another single line input, can it be done ?  
thanx all

---

<div class="post-metadata">

**Author:** ![Geekyra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Post date:** [May 8, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/change-onsubmit-event-key-from-return-key-ctrl-return/167490/2 "2009-05-08T12:37:44Z")

</div>

hi,

use javascript and make new handle of kbd events. search google, I think  
you’ll find a lot of examples

t

Geekyra wrote:

> Hello all, r there any way to change the “return” key in form single  
> line input ? For example, I want the form to submit the process using  
> “ctrl-return” key instead of “return” key because I want to use  
> “return” key just to add another single line input, can it be done ?  
> thanx all

# –

Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

# [www.meinlschmidt.com](http://www.meinlschmidt.com) www.maxwellrender.cz www.lightgems.cz
