From patchwork Mon May 9 01:56:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 619715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r359M0ZBQz9t3w for ; Mon, 9 May 2016 11:57:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=VAuSfUFi; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3r359L6XYWzDq9m for ; Mon, 9 May 2016 11:57:10 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=VAuSfUFi; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from mendozajonas.com (mendozajonas.com [188.166.185.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3r359G3ThvzDq5v for ; Mon, 9 May 2016 11:57:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=VAuSfUFi; dkim-atps=neutral Received: from skellige.ozlabs.ibm.com (unknown [122.99.82.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: sam@mendozajonas.com) by mendozajonas.com (Postfix) with ESMTPSA id 6867814005B for ; Mon, 9 May 2016 09:57:01 +0800 (SGT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mendozajonas.com; s=mail; t=1462759021; bh=/bndyx9rmyjCIc0MkJz0RMSPDdD8yg5U0dQgbEDuBU8=; h=From:To:Subject:Date:From; b=VAuSfUFi5oEqQEkQb/Y7mrHY8zbw48NLKxuPngKyIYZybI+D9Q7vR2zVv6v3QbD0S FwFwotPfNv+6VjqKl2aXtqAzod8HWksRgMMdqX6iPMpFxmMCSQAM6qmrWjg0q1weKL 5rIbb4IPH5XOcHNtvGzfVf1YaYcKENk4TPx9dmOI= From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH] ui/ncurses: Interpret left/right keys as up/down Date: Mon, 9 May 2016 11:56:51 +1000 Message-Id: <1462759011-19265-1-git-send-email-sam@mendozajonas.com> X-Mailer: git-send-email 2.8.2 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Signed-off-by: Samuel Mendoza-Jonas Reviewed-by: Cyril Bur --- ui/ncurses/nc-widgets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c index 98d30cc..c5c4cec 100644 --- a/ui/ncurses/nc-widgets.c +++ b/ui/ncurses/nc-widgets.c @@ -1129,12 +1129,14 @@ bool widgetset_process_key(struct nc_widgetset *set, int key) tab = true; /* fall through */ case KEY_UP: + case KEY_LEFT: req = REQ_SPREV_FIELD; break; case '\t': tab = true; /* fall through */ case KEY_DOWN: + case KEY_RIGHT: req = REQ_SNEXT_FIELD; break; case KEY_PPAGE: