phillbush / xmenu

a x11 menu utility
Other
295 stars 26 forks source link

Number key support #14

Closed RisingThumb closed 4 years ago

RisingThumb commented 4 years ago

This PR adds number key support for the numbers 1 - 9 to select specific items from the list. If the number exceeds the size of the list, it selects the final element in the list.

phillbush commented 4 years ago

Merged!
I modified the additions a little bit.
First I added a variable lastitem to avoid calling itemcycle() all the time (this function has some inner loops), and adapted the code additions to the general coding style.

Thanks for the PR!