Skip to content

Commit cc81d7a

Browse files
committed
Use travel keys for ?/B menu entries
1 parent 7ce444f commit cc81d7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crawl-ref/source/lookup-help.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,10 @@ static MenuEntry* _branch_menu_gen(char letter, const string &str, string &key)
780780
{
781781
MenuEntry* me = _simple_menu_gen(letter, str, key);
782782

783-
#ifdef USE_TILE
784783
const branch_type branch = branch_by_shortname(str);
784+
int hotkey = branches[branch].travel_shortcut;
785+
me->hotkeys = {hotkey, tolower(hotkey)};
786+
#ifdef USE_TILE
785787
me->add_tile(tile_def(tileidx_branch(branch), TEX_FEAT));
786788
#endif
787789

0 commit comments

Comments
 (0)