TimeEdit: handle Shift-Insert the same way as Ctrl-V

Shift-Insert pasted the text anyway, but without anyone "noticing",
which meant the TimeEdit's internal variable "time" didn't get updated,
causing TimeEdit::GetTime() to return the old time. Because of this,
pasting a time in the Jump To dialog with Shift-Insert didn't update the
frame number.

Originally committed to SVN as r6882.
This commit is contained in:
cantabile 2012-05-28 14:18:10 +00:00 committed by Thomas Goyne
parent 3a81e80aa5
commit a3d7d2bbc0

View file

@ -149,6 +149,14 @@ void TimeEdit::OnKeyDown(wxKeyEvent &event) {
else
event.Skip();
}
// Shift-Insert would paste the stuff anyway
// but no one updates the private "time" variable.
else if (event.ShiftDown()) {
if (key == WXK_INSERT)
PasteTime();
else
event.Skip();
}
else {
// Translate numpad presses to normal numbers
if (key >= WXK_NUMPAD0 && key <= WXK_NUMPAD9)