Middle clicking the video seek bar and audio display will now focus them.

Originally committed to SVN as r201.
This commit is contained in:
Rodrigo Braz Monteiro 2006-03-05 04:41:59 +00:00
parent ae1ab04215
commit e249381e31
3 changed files with 7 additions and 10 deletions

View file

@ -1183,12 +1183,9 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) {
dc.EndDrawing();
}
// Left click
if (event.ButtonDown(wxMOUSE_BTN_LEFT)) {
//if (wxWindow::FindFocus() != this) {
// Left/middle click
if (event.ButtonDown(wxMOUSE_BTN_LEFT) || event.Button(wxMOUSE_BTN_MIDDLE)) {
SetFocus();
//return;
//}
}
// Right click

View file

@ -56,6 +56,7 @@ Please visit http://aegisub.net to download latest version
- Dragging timecode files into the Aegisub window will now work as expected (instead of attempting to load it as subtitles). (AMZ)
- Added option ("keep raw dialogue data", default false) that makes Aegisub use less RAM at a small performance cost when set to false. (AMZ)
- The line timing extending in timing post-processor is now governed by the "timing processor adjascent bias" option (1.0 [default] = move end, 0.0 = move start, 0.5 = move to halfway point, etc) (AMZ)
- Middle clicking the video seek bar and audio display will now focus them. (AMZ)
= 1.09 beta - 2006.01.16 ===========================

View file

@ -228,10 +228,9 @@ void VideoSlider::OnMouse(wxMouseEvent &event) {
SetFocus();
}
// Right click
if (event.ButtonDown(wxMOUSE_BTN_RIGHT)) {
if (wxWindow::FindFocus() != this) SetFocus();
else event.Skip();
// Right/middle click
if (event.ButtonDown(wxMOUSE_BTN_RIGHT) || event.ButtonDown(wxMOUSE_BTN_MIDDLE)) {
SetFocus();
}
// Something else