[haiku-bugs] [Haiku] #7964: Apple Aluminum Keyboard Layout files

  • From: "jscipione" <trac@xxxxxxxxxxxx>
  • Date: Wed, 28 Sep 2011 07:09:43 -0000

#7964: Apple Aluminum Keyboard Layout files
----------------------------------+----------------------------
   Reporter:  jscipione           |      Owner:  axeld
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Preferences/Keymap  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+----------------------------

Attachment added (by jscipione):

Keymap_add_Apple_Aluminum_submenu_2.diff (12.1 KB) - This patch builds on the 
last patch adding the new Apple Aluminum keyboard layout files to the keymap 
app. In the last patch marking the menu option was not working correctly. This 
fixes the menu marking so that it will mark the correct item even if that item 
is in a submenu. The Layout menu is no longer in RadioMode because that doesn't 
work with submenus. Instead I go through the menu and mark and unmark items 
appropriately. Yes there is a goto in the patch but it is not bad. The goto 
breaks out of an inner loop which is appropriate. The layout menu items are 
sorted alphabetically even the default Generic 105-key International layout but 
since I am a bit smarter about finding the default one it no longer has to be 
the first item in the list.

View the file at 
http://dev.haiku-os.org/attachment/ticket/7964/Keymap_add_Apple_Aluminum_submenu_2.diff

-- 
Ticket URL: http://dev.haiku-os.org/ticket/7964
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: