mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 12:02:40 +02:00
fix replace mode semicolon shortcut
This commit is contained in:
@@ -1633,10 +1633,10 @@ void GameView::OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl,
|
|||||||
break;
|
break;
|
||||||
case SDL_SCANCODE_SEMICOLON:
|
case SDL_SCANCODE_SEMICOLON:
|
||||||
if (ctrl)
|
if (ctrl)
|
||||||
{
|
|
||||||
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^SPECIFIC_DELETE);
|
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^SPECIFIC_DELETE);
|
||||||
|
else
|
||||||
|
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^REPLACE_MODE);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
didKeyShortcut = false;
|
didKeyShortcut = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user