Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea에서 개행이 안 됨. #394

Closed
shaynekang opened this issue Nov 9, 2014 · 4 comments
Closed

textarea에서 개행이 안 됨. #394

shaynekang opened this issue Nov 9, 2014 · 4 comments
Assignees

Comments

@shaynekang
Copy link

모든 textarea에서 엔터를 치면 자동으로 submit이 되는 것 같습니다.
javascripts/admin/users.js의 다음 코드에서 일어나는 문제 같네요.

$("textarea").keydown(function(e){
  // Enter was pressed without shift key
  if (e.keyCode == 13 && !e.shiftKey)
  {
      if (this.form)
        this.form.submit();
      else
        e.preventDefault();
      return false;
  }
});

수정이 필요할 것 같습니다. ㅎㅎ

@shaynekang
Copy link
Author

위의 코드는 어느 이슈를 처리하면서 추가한건가요? ㅎㅎ @yhoonkim

@angdev
Copy link
Member

angdev commented Nov 9, 2014

#358textarea에서 enter불가능하게 하기 와는 어떤 관련이 있을까요..?

@shaynekang
Copy link
Author

어 그러게요. 근데 왜 enter가 불가능해야 하죠? ㅡ,.ㅡa;;

@yhoonkim
Copy link
Contributor

yhoonkim commented Nov 9, 2014

헐 tag에서 입력할 때 엔터치면 submit이 안되서 그렇게 한거였어요.
수정하도록 하겠습니다.

@yhoonkim yhoonkim self-assigned this Nov 9, 2014
@yhoonkim yhoonkim mentioned this issue Nov 9, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants