Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Such times are accepted by all modern renderers and with ffmpeg and mkvtoolnix it appears muxers support it as well.
Testing the new code, everything still seems to be fine:
I tried to also deal with the input boxes, by allowing prepending a digit if the cursor is at the start and a modifier is pressed, but it appears those keyboard events don’t even reach
TimeEdit::OnChar
and I’m not sure how to resolve this (even withShift
as a modifier).If there already are multi-digit hours, all digit can be edited as usual (unless the leading digit is replaced by a zero in which case it disappears).
As a hacky workaround until a proper fix: I also noticed if dead keys or an IME is involved
OnChar
also appears to be skipped. This can be abused to insert any character at the start and then subsequently replace it as usual with the desired digit.(Side note: when this limit started to be enforced in 1d4c0c0, there already was
wxString::format
available and used for SMPTE, so this was no reason to avoid multi-digits (anymore already))