]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: allow numpad enter key to end current file playback
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 16 Aug 2023 16:53:52 +0000 (18:53 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 18 Aug 2023 11:52:35 +0000 (13:52 +0200)
videoplayer/src/main.rs

index c681e9c459b97593f58749829a1bb05050ddcb2b..37eb89d8f689bce1bf25068e812d3aa82a135a02 100644 (file)
@@ -488,7 +488,7 @@ impl Player {
                         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)?; },