Skip to content

Commit 3c7197d

Browse files
authored
Merge pull request #23 from Wires77/console_command
feat: adding alternate console shortcut (Ctrl-F1) for non-US layouts
2 parents 37483da + b68f947 commit 3c7197d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui_console.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void ui_console_c::Hide()
9393

9494
bool ui_console_c::KeyEvent(int key, int type)
9595
{
96-
if (type == KE_KEYDOWN && key == '`' && sys->IsKeyDown(KEY_CTRL)) {
96+
if (type == KE_KEYDOWN && (key == '`' || key == KEY_F1) && sys->IsKeyDown(KEY_CTRL)) {
9797
Toggle();
9898
return true;
9999
}

0 commit comments

Comments
 (0)