occivink / mpv-scripts

Various scripts for mpv
The Unlicense
417 stars 38 forks source link

NUMENTER #48

Closed Max-Enrik closed 3 years ago

Max-Enrik commented 3 years ago

I'd like to change Enter to NumEnter how can I do that?

occivink commented 3 years ago

Which script are you talking about?

Max-Enrik commented 3 years ago

Sorry I didn't mentioned it. I am talking about 'seek-to.lua'.

occivink commented 3 years ago

Alright, you need to modify this line https://github.com/occivink/mpv-scripts/blob/master/scripts/seek-to.lua#L119 and rename ENTER to KP_ENTER

Max-Enrik commented 3 years ago

Thank you a lot, I used try to edit that line before the posted the question, didn't find any key code/name in google. Where can I get that .lua keys code/name?

occivink commented 3 years ago

You can use mpv --force-window --idle --input-test. There's also this list https://github.com/mpv-player/mpv/blob/master/input/keycodes.c

Max-Enrik commented 3 years ago

Thank you a ton.