alternate keys: semicolon for replace mode, ctrl+semicolon for specific delete (also couldn't figure out how to detect mac delete key)
This commit is contained in:
parent
fd586d167f
commit
a5cee8c393
@ -1473,6 +1473,13 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
else
|
else
|
||||||
c->InvertAirSim();
|
c->InvertAirSim();
|
||||||
break;
|
break;
|
||||||
|
case ';':
|
||||||
|
if (ctrl)
|
||||||
|
{
|
||||||
|
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^SPECIFIC_DELETE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//fancy case switch without break
|
||||||
case SDLK_INSERT:
|
case SDLK_INSERT:
|
||||||
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^REPLACE_MODE);
|
c->SetReplaceModeFlags(c->GetReplaceModeFlags()^REPLACE_MODE);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user