From patchwork Wed Jul 17 08:23:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sunshaojie X-Patchwork-Id: 18396 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C786125B8B for ; Wed, 17 Jul 2013 08:24:00 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id d10sf2673266vea.0 for ; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=+/CZyfI9c11qcio9XN18CuxrErIsQa1fmyvzxXFBMHI=; b=fVqZGsN1JjbnRNVcGEp11aDhMGn/cjjCnX1yE6AkbM+ppt5JnUG54IyQXwEbZ7+1CO AZDEpuq6wHJhfZej0TQ6VuMzliPfvN2yGsDc5+GtAa2u/Mnp6CHW6+VhKa1XsDvZx70o CwhS/qtj67s0fKZ9bP4mxDj4cAWRVDDxel1wS4W85aud2mWWF6ZrIMiLquunjC2yvYMf c+maUUFu8aZ4Kjgtls0EwB2ovDyFzlzWFvseJ+Jfht7KdyRuhI+xglKhxFoOsnQoNs6N aOZg6tRzFaL5D1Gr1WEtLoz6RnYcRiUTmkcGI0C+YmZOQuh0omwbnqnFk3Dg2GsgglMR zYTA== X-Received: by 10.236.139.3 with SMTP id b3mr3248770yhj.3.1374049440354; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.128.137 with SMTP id no9ls857059qeb.82.gmail; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) X-Received: by 10.58.197.5 with SMTP id iq5mr1749109vec.30.1374049440221; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id cu1si1145750vcb.136.2013.07.17.01.24.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 01:24:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db10so1259645veb.12 for ; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) X-Received: by 10.58.211.227 with SMTP id nf3mr1741695vec.20.1374049440103; Wed, 17 Jul 2013 01:24:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.149.77 with SMTP id s13csp160794vcv; Wed, 17 Jul 2013 01:23:59 -0700 (PDT) X-Received: by 10.68.203.137 with SMTP id kq9mr5512267pbc.190.1374049439138; Wed, 17 Jul 2013 01:23:59 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id aq4si3149359pbd.176.2013.07.17.01.23.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 01:23:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of shaojie.sun@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md12so1631223pbc.30 for ; Wed, 17 Jul 2013 01:23:58 -0700 (PDT) X-Received: by 10.66.219.103 with SMTP id pn7mr6698171pac.123.1374049438231; Wed, 17 Jul 2013 01:23:58 -0700 (PDT) Received: from localhost.localdomain ([58.251.159.202]) by mx.google.com with ESMTPSA id wg6sm6572948pbc.3.2013.07.17.01.23.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 01:23:57 -0700 (PDT) From: sunshaojie To: sanjay.rawat@linaro.org Cc: patches@linaro.org, private-pmwg@linaro.org, sunshaojie Subject: [PATCH 1/3] POWERDEBUG: add "case '\n'" for ENTER key input. Date: Wed, 17 Jul 2013 16:23:45 +0800 Message-Id: <1374049425-3950-1-git-send-email-shaojie.sun@linaro.com> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmb18tai9UoY2lzwCNdC0kzxXJSNBxD8O965cXBnxqsGKDJmbyVPtRZGyk6uonvCyzH8oCC X-Original-Sender: shaojie.sun@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Because in some keyboard ENTER key value is '\n', so we must add this value for ENTER key triggled. Signed-off-by: sunshaojie --- display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/display.c b/display.c index e9f4bf6..41a511d 100644 --- a/display.c +++ b/display.c @@ -401,6 +401,7 @@ static int display_keystroke(int fd, void *data) display_prev_line(); break; + case '\n': case '\r': display_select(); break; @@ -474,6 +475,7 @@ static int display_find_keystroke(int fd, void *data) break; + case '\n': case '\r': if (!windata[current_win].ops || !windata[current_win].ops->selectf) return 0;