From d5aa89f202eaba3c07bbb2b94d6b7b45017d2600 Mon Sep 17 00:00:00 2001 From: wlf <5421002+wlf213@user.noreply.gitee.com> Date: Tue, 21 Nov 2023 09:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9B=91=E5=90=AC=E6=8C=89=E9=94=AE=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/menuSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/pear/module/menuSearch.js b/component/pear/module/menuSearch.js index f5600cd..41775ba 100644 --- a/component/pear/module/menuSearch.js +++ b/component/pear/module/menuSearch.js @@ -114,7 +114,7 @@ layui.define(['jquery', 'tools'], function (exports) { }) // 监听键盘事件 - $(document).off("keydown").keydown(function (e) { + $('.menu-search-content').off("keydown").keydown(function (e) { if (e.keyCode === 13 || e.keyCode === 32) { e.preventDefault(); var that = $(".menu-search-list li.this"); -- Gitee