Keymap: Restore menu field status icons

Fixes the missing piece of hrev57496
"Keymap: Put status icons inside menu fields"

Change-Id: I824f8c105036ae7ea6535f33e0ec0fa8f812f39d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8112
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
John Scipione 2024-08-25 21:30:38 -04:00 committed by waddlesplash
parent 2147db3699
commit d26613e1bb

View File

@ -297,7 +297,8 @@ ModifierKeysWindow::_CreateMenuField(BPopUpMenu** _menu, BMenuField** _menuField
BMessage* message = new BMessage(kMsgUpdateModifier);
message->AddInt32(keyName, key);
BMenuItem* item = new BMenuItem(B_TRANSLATE_NOCOLLECT(_KeyToString(key)), message);
StatusMenuItem* item
= new StatusMenuItem(B_TRANSLATE_NOCOLLECT(_KeyToString(key)), message);
menu->AddItem(item, key);
}