diff options
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 20c5e07f6..ba664059b 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -1207,9 +1207,10 @@ /* fMovieView Keyboard controls */ - (void)keyDown:(NSEvent *)event { + unichar key = [[event charactersIgnoringModifiers] characterAtIndex:0]; + if (aMovie) { - unichar key = [[event charactersIgnoringModifiers] characterAtIndex:0]; if (key == 32) { if ([self isPlaying]) @@ -1244,8 +1245,22 @@ else [super keyDown:event]; } - else + else if (!fEncodeState) + { + if (key == NSLeftArrowFunctionKey) + { + [fPictureSlider setIntegerValue:fPicture > [fPictureSlider minValue] ? fPicture - 1 : fPicture]; + [self pictureSliderChanged:self]; + } + else if (key == NSRightArrowFunctionKey) + { + [fPictureSlider setIntegerValue:fPicture < [fPictureSlider maxValue] ? fPicture + 1 : fPicture]; + [self pictureSliderChanged:self]; + } [super keyDown:event]; + } + + [super keyDown:event]; } #pragma mark *** QTTime Utilities *** |