Commit 79ee277a by Lee Munkyeong

エンターキーエスケープ追加。

parent 2569cb4e
......@@ -45,11 +45,10 @@
<form id="makeRoomForm" action="chat_make_room_confirm.html" method="post">
<!-- ユーザー検索 -->
<div class="search_form my-2">
<form>
<input type="search" name="search" placeholder="ユーザー検索">
<span class="src_icon"></span>
<a href="#" class="cancel none">キャンセル</a>
</form>
<input type="input" name="hidden_for_prevent_submit" hidden>
</div>
<!-- タブ -->
......
......@@ -45,11 +45,9 @@
<main id="contact">
<!-- ユーザー検索 -->
<div class="search_form">
<form>
<input type="search" name="search" placeholder="ユーザー検索">
<span class="src_icon"></span>
<a href="#" class="cancel none">キャンセル</a>
</form>
</div>
<div class="content chat_list">
<ul class="p-0 chat_make_room_list">
......
$(function() {
// メンバー検索
$('#chatMakeRoom .search_form input[type="search"]').keyup(function(){
$('#chatMakeRoom .search_form input[type="search"]').keyup(function(e) {
if (e.key == "Enter" || e.KeyCode == 13) {
$('#chatMakeRoom .search_form input[type="search"]').blur();
return false;
}
var isAllGroup = $('#tabAllGroupOnMakeRoom').is(':checked');
$('.overlay_src_msg').empty();
......
$(function () {
// メンバー検索
$('#contact .search_form input[type="search"]').keyup(function(e){
if (e.key == "Enter" || e.KeyCode == 13) {
$('#contact .search_form input[type="search"]').blur();
return ;
}
var isAllGroup = $('#tabAllGroup').is(':checked');
$('.overlay_src_msg').empty();
var keyword = $('#contact .search_form input[type="search"]').val();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment