println!();
return Ok(true);
},
- Keycode::Return => return Ok(true),
+ Keycode::Return | Keycode::KpEnter => return Ok(true),
Keycode::Right => { self.seek(10, true, dmx, disp_queue)?; },
Keycode::Left => { self.seek(10, false, dmx, disp_queue)?; },
Keycode::Up => { self.seek(60, true, dmx, disp_queue)?; },
let wname = if let Some(fname) = fname {
// workaround for libSDL2 workaround for non-UTF8 windowing systems
// see https://github.com/libsdl-org/SDL/pull/4290 for detais
- let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-");
+ let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-").replace('\u{2014}', "-");
"NihAV player - ".to_owned() + &nname
} else {
"NihAV player".to_owned()