diff options
author | ritsuka <[email protected]> | 2013-02-01 19:48:33 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2013-02-01 19:48:33 +0000 |
commit | 7433cb189a1ec58a3fdcd625edb762cff5267277 (patch) | |
tree | daca0c3239e0d900edd39d8f35b41c2db8b05e42 /macosx/HBPreviewController.m | |
parent | 478574ed1d6161a49212d29ff3911dfad15da5f3 (diff) |
MacGUI: make the control box in preview window 10 px larger to avoid splitting text on two lines, and expand the keyboard control to the still images.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5232 b64f7644-9d1e-0410-96f1-a4d463321fa5
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 *** |