Replaced deprecated code from extract_accel_from_menu_item