To: rich at annexia.org Cc: lablgtk at kaba.or.jp Subject: Re: F1 key in menu item In-Reply-To: <20030828155013.GB6455 at redhat.com> References: <20030828155013.GB6455 at redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030829085506R.garrigue at kurims.kyoto-u.ac.jp> Date: Fri, 29 Aug 2003 08:55:06 +0900 From: Jacques Garrigue Lines: 15 From: Richard Jones > How do I have the F1 key be an accelerator? The following code > produces Ctrl+F1 which isn't quite right. > > let help_item = factory#add_item "Help Page" ~key:GdkKeysyms._F1 in The modifiers are fixed for a given factory. But yout can create a new factory without modifier: let factory' = new GMenu.factory ~accel_group:factory#accel_group ~accel_modi:[] factory#menu Jacques