TBS1996 / speki

flashcard app in your terminal
GNU General Public License v2.0
496 stars 18 forks source link

Alt + Arrow Keys do not work on Mac #8

Open sgunadhya opened 2 years ago

sgunadhya commented 2 years ago

I am using M1 Mac with Macos Monterey 12.6. I installed speki using cargo install speki command. On "Add Card" tab, I cannot use the Alt and arrow key combination to move between the widgets.

TBS1996 commented 2 years ago

how about + h/j/k/l ? that's how i originally intended it too. Its possible alt+arrowkeys serve some other purpose on your terminal

sgunadhya commented 2 years ago

Those don't work either.

TBS1996 commented 2 years ago

but the keys work in other tabs?

sgunadhya commented 2 years ago

They don't work anywhere. I guess the issue is with the underlying crossterm library.

TBS1996 commented 2 years ago

Oh yes, that seems to be the case. I'm reading now that it supports windows and linux but doesn't mention mac. The alternative was termion, which doesnt support windows but supports mac and linux. I can check how difficult it would be to make a termion version

TBS1996 commented 2 years ago

Hey again, could you check if the newest release works? and if it doesn't, now you can use your mouse, which I know isn't ideal but yeah its an option

IngridMorstrad commented 2 years ago

Just want to add that I'm facing the same issue, and using the mouse doesn't really work either because you have to first click with the mouse, and then hit enter on the keyboard.