From patchwork Wed Jun 1 13:08:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isak Ellmer X-Patchwork-Id: 12866895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB140C433F5 for ; Wed, 1 Jun 2022 13:08:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353094AbiFANId (ORCPT ); Wed, 1 Jun 2022 09:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245269AbiFANIc (ORCPT ); Wed, 1 Jun 2022 09:08:32 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A2391580F; Wed, 1 Jun 2022 06:08:31 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id h23so2659025lfe.4; Wed, 01 Jun 2022 06:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1ysIJYl13aRlLMw9IPUXDzBeV3KCUBiCmG2+wGOlmHo=; b=XxTcLqnXWxtfzufWQrrtcmf2KI1UVqAdPX9YAicWmeyYnf3pIFibSAyGax4hflFFzx UTUxf6VqqNp7pj6YSMRh+bj1o3XK0iWcr/bDdMHCnk2yHLtZjHxlq7NLWaRc+T0wucj7 FZ7CQxDlLccUps2bq/UWuBVRZwb/6sEKmkOwWSmjC/EIAuOe8kb4PumBSOBBmn2pgLrv YVGULob2g5+8GQNCSNUiconc8YvzjYkVvpRqEXak1QmUQkGAiTguiTeuQTDph6RZiqUH q532kzTF0onEAtqgP20XBMuJhqjQBm7FJfSriVnyjK2f5YS1oa6qizHLPn0H6eddkLF4 33gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1ysIJYl13aRlLMw9IPUXDzBeV3KCUBiCmG2+wGOlmHo=; b=WArxBftEXQXYbpxHEKoyNPlDMkPkcD0Kx5zaiwOiw4ZaK4gDlj4C+AE1QMSkp5+h8Q XU3PP38stnok6k6lMWbzO0BFCM2g4yXxue6Sjjy7oggNeA3nkUvWylpia7bv2WKZcAg4 x/2jJrnavUlsF6GiYYIAnZGui5BkjrkJYh3RVC0IWNOs1oNSAHZz2c1Rivuk46epbSJB VSDS9i1WBlJhCGzt4YI11M31k1bWz35Pt4BN7Q3OdCEED7Fb6RV8LdK8PN/j57oc0QlQ AD/pxxFdQtC4nknSmb1xReODX/KM9FnoVfrykVvYehKL0YajoVIzZjy2ca2/Q6qkyQs/ RL7A== X-Gm-Message-State: AOAM5313V2iuM3+QFC65tqUqsnzjZilEVJqSFoQI86FwTLOAY/Ewj1/E 61Mndt74gwlTpFJH14S5nD43KVWaFLOGFA== X-Google-Smtp-Source: ABdhPJz0bbUbPS/qEfNkuoBVAWK+BWb64uElH7mN424dfb4NVpAHOQnii4oNpTWZ5Wnnj5HUUDIyzQ== X-Received: by 2002:a05:6512:31d6:b0:478:84d8:5844 with SMTP id j22-20020a05651231d600b0047884d85844mr32381773lfe.382.1654088909250; Wed, 01 Jun 2022 06:08:29 -0700 (PDT) Received: from localhost.localdomain (81-231-252-146-no39.tbcn.telia.com. [81.231.252.146]) by smtp.gmail.com with ESMTPSA id a27-20020a056512201b00b00478641f62c0sm366956lfb.28.2022.06.01.06.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 06:08:28 -0700 (PDT) From: Isak Ellmer To: masahiroy@kernel.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Isak Ellmer Subject: [PATCH] scripts: kconfig: nconf: make nconfig accept jk keybindings Date: Wed, 1 Jun 2022 15:08:19 +0200 Message-Id: <20220601130819.11171-1-isak01@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Make nconfig accept jk keybindings for movement in addition to arrow keys. Signed-off-by: Isak Ellmer --- scripts/kconfig/nconf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 7b371bd7fb36..3ba8b1af390f 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -52,8 +52,8 @@ static const char nconf_global_help[] = "\n" "Menu navigation keys\n" "----------------------------------------------------------------------\n" -"Linewise up \n" -"Linewise down \n" +"Linewise up \n" +"Linewise down \n" "Pagewise up \n" "Pagewise down \n" "First entry \n" @@ -1105,9 +1105,11 @@ static void conf(struct menu *menu) break; switch (res) { case KEY_DOWN: + case 'j': menu_driver(curses_menu, REQ_DOWN_ITEM); break; case KEY_UP: + case 'k': menu_driver(curses_menu, REQ_UP_ITEM); break; case KEY_NPAGE: @@ -1287,9 +1289,11 @@ static void conf_choice(struct menu *menu) break; switch (res) { case KEY_DOWN: + case 'j': menu_driver(curses_menu, REQ_DOWN_ITEM); break; case KEY_UP: + case 'k': menu_driver(curses_menu, REQ_UP_ITEM); break; case KEY_NPAGE: