From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S4MsL-0008T2-Lz for mharc-grub-devel@gnu.org; Sun, 04 Mar 2012 20:38:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4MsG-0008Sw-HB for grub-devel@gnu.org; Sun, 04 Mar 2012 20:38:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4MsC-0004Od-1U for grub-devel@gnu.org; Sun, 04 Mar 2012 20:38:04 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:44230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4MsB-0004OV-Ok for grub-devel@gnu.org; Sun, 04 Mar 2012 20:37:59 -0500 Received: by eeke53 with SMTP id e53so1340842eek.0 for ; Sun, 04 Mar 2012 17:37:57 -0800 (PST) Received-SPF: pass (google.com: domain of phcoder@gmail.com designates 10.213.113.205 as permitted sender) client-ip=10.213.113.205; Authentication-Results: mr.google.com; spf=pass (google.com: domain of phcoder@gmail.com designates 10.213.113.205 as permitted sender) smtp.mail=phcoder@gmail.com; dkim=pass header.i=phcoder@gmail.com Received: from mr.google.com ([10.213.113.205]) by 10.213.113.205 with SMTP id b13mr2878908ebq.114.1330911477820 (num_hops = 1); Sun, 04 Mar 2012 17:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/UmmrsF4bgoVXp1jiQvyshJyKCxKNsHK5S6o4mPWTcM=; b=XUFYQS+eCUfKpzvlronUMRP7c4bUsUZ7VAPlfsuqFzvT/u1Uq8Crl/Zo/g3+UKyNLI lQwuYVBtp+S7sSENyg/3w7+D7T4w5xCp2a7M3jdelNtGsnLJ/RmyWe6LzUbwdY76Hayb HH1YpFbuZOWIX3kAky14F+VD+ZZh+NFWh6xje47ms89v4lk4cQLib37xj8USQQj4Sr8M WbOX6gI7XsTUtcJzGFCOsD50fmlm3JRvXvyrkUryr64OE/QG6j/XvXjEaRf7ZmNs+nyw 8nDAwdmSO09m/BdWz3Y/UznVmUS0RaZh/tvpqQ7DtSzELTEWwB8RShTMTU9R4c9oR6GU rljg== Received: by 10.213.113.205 with SMTP id b13mr2180569ebq.114.1330911477593; Sun, 04 Mar 2012 17:37:57 -0800 (PST) Received: from debian.x201.phnet (106-191.203-62.cust.bluewin.ch. [62.203.191.106]) by mx.google.com with ESMTPS id s48sm55473942eem.0.2012.03.04.17.37.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Mar 2012 17:37:56 -0800 (PST) Message-ID: <4F5418F2.7000707@gmail.com> Date: Mon, 05 Mar 2012 02:37:54 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Support for different hotkey action than execute References: <4F4ABB64.6020305@googlemail.com> In-Reply-To: <4F4ABB64.6020305@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.83.41 Cc: Andreas Born X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 01:38:08 -0000 On 27.02.2012 00:08, Andreas Born wrote: > Attached patch introduces a new environment variable hotkey_action. It > can be set to select or execute, whereas the latter is the default. So > the default behaviour doesn't change. With select set instead a menu > entry is just selected and not executed/booted on hotkey press. > > This is for example useful for long menus to directly jump to some > initial and afterwards select the desired entry without going through > the whole menu. One still has to explicitly mark the menu entry to > jump to with the hotkey attribute. This patch only allows to change > the action to take on hotkey press. > > Not much code and most is inspired from grub_menu_get_timeout. Applies > and works with r3991. > > Add support to the menu for changing the action on hotkey press: > execute (default), select > > * grub-core/normal/menu.c (DEFAULT_HOTKEY_ACTION): New define. This is a global change (affecting all menuentries) for a local goal (have a jump hotkey for a menuentry). This has a drawback of making simultaneous inclusion of two files with different behaviour problematic. This should be implemented as a separate --jump-hotkey with additional benefit of allowing both hotkey and jump hotkey at the same time. > (run_menu): Handle hotkey_action. > (grub_menu_get_hotkey_action): New function. > * include/grub/menu.h (grub_menu_get_hotkey_action): New prototype. > (grub_hotkey_action_type_t): New enum. > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel -- Regards Vladimir 'φ-coder/phcoder' Serbinenko