Commit 16a94e15 authored by hartman's avatar hartman
Browse files

* when the playlist is selected and you push the spacebar we pause/play

  the movie. this makes the behaviour more consistent, though the solution
  is somewhat unclean. We should fix this on a higher level but i don't see
  how we could/should.
parent 72fb9033
......@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: playlist.m,v 1.4 2003/01/20 03:45:06 hartman Exp $
* $Id: playlist.m,v 1.5 2003/01/24 02:31:53 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
*
......@@ -46,6 +46,28 @@
return( [[self delegate] menuForEvent: o_event] );
}
- (void)keyDown:(NSEvent *)o_event
{
intf_thread_t * p_intf = [NSApp getIntf];
unichar key = 0;
if( [[o_event characters] length] )
{
key = [[o_event characters] characterAtIndex: 0];
}
switch( key )
{
case ' ':
input_SetStatus( p_intf->p_sys->p_input , INPUT_STATUS_PAUSE );
break;
default:
[super keyDown: o_event];
break;
}
}
@end
/*****************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment