Skip to content

Commit

Permalink
Merged revision(s) 22257 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Fix] Key Config: When changing a shortcut via a search that had results in multiple contexts, a wrong context could be assigned to the shortcut.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@22258 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 21, 2024
1 parent c1ec1f1 commit 8f88bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mptrack/KeyConfigDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ void COptionsKeyboard::OnSetKeyChoice()
if(m_bKeyUp.GetCheck() != BST_UNCHECKED)
event |= kKeyEventUp;

KeyCombination kc((commandCategories[m_curCategory]).id, m_eCustHotKey.mod, m_eCustHotKey.code, event);
KeyCombination kc((commandCategories[GetCategoryFromCommandID(cmd)]).id, m_eCustHotKey.mod, m_eCustHotKey.code, event);
//detect invalid input
if(!kc.KeyCode())
{
Expand Down

0 comments on commit 8f88bf3

Please sign in to comment.