From a5cee8c393eb89440d78e2cd766653381a630ba4 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 29 Aug 2013 23:01:07 -0400 Subject: [PATCH] alternate keys: semicolon for replace mode, ctrl+semicolon for specific delete (also couldn't figure out how to detect mac delete key) --- src/gui/game/GameView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 9d4295cb2..65f341aea 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -1473,6 +1473,13 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool else c->InvertAirSim(); break; + case ';': + if (ctrl) + { + c->SetReplaceModeFlags(c->GetReplaceModeFlags()^SPECIFIC_DELETE); + break; + } + //fancy case switch without break case SDLK_INSERT: c->SetReplaceModeFlags(c->GetReplaceModeFlags()^REPLACE_MODE); break;