From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S4Ikf-0008PV-Iv for mharc-grub-devel@gnu.org; Sun, 04 Mar 2012 16:13:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Ikd-0008PB-6A for grub-devel@gnu.org; Sun, 04 Mar 2012 16:13:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4Ikb-0004Vx-B8 for grub-devel@gnu.org; Sun, 04 Mar 2012 16:13:54 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:46388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Ikb-0004UZ-33 for grub-devel@gnu.org; Sun, 04 Mar 2012 16:13:53 -0500 Received: by eaal1 with SMTP id l1so1253234eaa.0 for ; Sun, 04 Mar 2012 13:13:51 -0800 (PST) Received-SPF: pass (google.com: domain of futur.andy@googlemail.com designates 10.213.15.13 as permitted sender) client-ip=10.213.15.13; Authentication-Results: mr.google.com; spf=pass (google.com: domain of futur.andy@googlemail.com designates 10.213.15.13 as permitted sender) smtp.mail=futur.andy@googlemail.com; dkim=pass header.i=futur.andy@googlemail.com Received: from mr.google.com ([10.213.15.13]) by 10.213.15.13 with SMTP id i13mr2832120eba.72.1330895631005 (num_hops = 1); Sun, 04 Mar 2012 13:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=aUvfa7hRqYXr+1tJdk/6M3P3o80t2RCQIoJUzKqVTnI=; b=uVF/OOj0uf8sojXYEtik8S2uJevQPBoWv8bEwqyhzuo0uAMMU9/NncQuUlMBYchd3j Jb/lSEl8eJfYDqF6eutDF/qzarGbAbO2U4NkKGQbzOAQ06wa2azoxettr2+g3WPNf2SL CjdDiPSCPOy7MQmNJhCKTb6pMgHs6It9xiZpBynLpGBmDtjvO6IxFC9iMjFxkBz8FG3u Ov8wiTDWALlPaa62rzjP+wMUjAJF+c2ygWchFv1ZlkazlNDNyTcVvmWlfGIWVJ7gAgd8 S8WXlJRq89vvY0RY552PfUcTAkwu7U5fU7hN2it7zhYHp5rFRs6+wBimrx4VXF5auXoo I8kQ== Received: by 10.213.15.13 with SMTP id i13mr2133890eba.72.1330895630899; Sun, 04 Mar 2012 13:13:50 -0800 (PST) Received: from [192.168.178.55] (p5091D536.dip.t-dialin.net. [80.145.213.54]) by mx.google.com with ESMTPS id i10sm52965809eea.8.2012.03.04.13.13.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Mar 2012 13:13:49 -0800 (PST) Message-ID: <4F53DB0B.1070500@googlemail.com> Date: Sun, 04 Mar 2012 22:13:47 +0100 From: Andreas Born User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120220 Thunderbird/10.0.2 MIME-Version: 1.0 To: GRUB2 Devel 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=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 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: Sun, 04 Mar 2012 21:13:56 -0000 Any problem with this patch? Or why is there no comment? I know, it's really long. ;) In fact, if possible, I'd be very happy if we can still get this into 2.00. Am 27.02.2012 00:08, schrieb Andreas Born: > 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. > (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.