-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let volume controls answer/act as tap #3021
Comments
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
I'd also be interested in this! Being able to use volume controls to rate cards "Again" or "Good" would be so convenient. |
Happy to report that I stumbled upon a $1.99 paid app that lets you map the volume control buttons to keys of your choosing! Best part, root access is not required. It's called External Keyboard Helper Pro. There's a Demo version available as well for testing purposes - not sure what the Demo version's limitations are. Here are some basic instructions - Let me know if you run into trouble configuring this and I can try to help. Install it and follow the instructions to enable it as a keyboard input device. Then, from within the app, go to Advanced Settings, Keyboard Mapping, Customize Keyboard Mappings. Hit the "Add new key mapping" button. With the cursor in the Scancode field, press the volume down button. It should populate that field with a string of numbers. Uncheck the Keycode box, if it's checked, and put the number 1 in all of the fields that follow. Hit Save. Now let's test it out! Still in that app, press the three dots menu icon and tap Test Area. This is where it might get wonky. You have to have the External Keyboard Helper Pro keyboard set as your default input device. On 6.0 Marshmallow, there's a little keyboard switching icon as part of the control buttons at the bottom of the screen. Tap it and select the External Keyboard Helper Pro input device. If that icon is NOT there, you'll have to enable it from within the Settings menu. With it enabled, go to the Test Area and press volume down. It should print 1, which in Anki means Again. Following these steps, I remapped volume up to Space, which shows answer and marks a question Good. My phone doesn't have any other hardware buttons, but on my corded earbuds, there's a third button, which I remapped to 3 for Easy (when the card is New or in Learning). |
Cool, this earbud thing is really good idea. What earbuds did you use ? What kind of phone? I have Galaxy S4. @lizzgilmore |
My phone is the Nexus 6 and my earbuds are the cheapo Samsung OEM ones from Amazon (Samsung OEM Samsung 3.5mm Stereo Headset for Galaxy S5, S4, S3, Note - Non-Retail Packaging - White https://www.amazon.com/dp/B00K7JPHHA/ref=cm_sw_r_other_awd_yWZSwb43K17EP), but this method should work with any earbuds that have volume up/down buttons on the cord. If you have headphones or earbuds with three buttons (like rewind, fast forward, and play/pause), you can map one to Spacebar for Show Answer and Good, one to 1 for Again, and one to U for Undo. That's all I need in 90% of situations. |
This is great! I followed your instructions, @lizzgilmore, and everything worked on my Galaxy S8. However, mapping a key press to "U" did not work for me. Mapping a key press to "z" worked to undo the previous review, and "r" works for replaying the audio. I was already amazed, but the ability to now undo a review and replay the audio is icing on the cake. This is magical! Also, the free dome version of External Keyboard Helper has worked just fine for me so far. |
@andrewsanchez So glad someone found my writeup helpful! Thanks for the correction for the undo shortcut, too. The free demo version might not have been working when I first tried this out...honestly can't remember, but regardless, happy it's working for you. Happy New Year. |
@hssm I really like the headphones control, such that TTS feature would be finally leveredged! |
Thank you so much for the detailed instructions. I've added the "EKH Switch" as launching option for Ankidroid to tasker in order to automatically switch keyboards. |
Thanks a bunch @lizzgilmore for the writeup! I already bought the app before reading about your method and was very excited to try it out. Now reviewing on the go, especially on the train using headphones, is so much more convenient! I chose to map volume up to space, volume down to 1, and the center button on my headphone to 2 (equals "hard if hard is a choice, good otherwise"). Last time I was on the train I strapped the phone to the back of the seat in front of me and reviewing using the headphone buttons was so much nicer. Thanks again! |
Thank you!! Your idea is really helpful to me 😊 |
Thank you @lizzgilmore for the brilliant idea and the write-up! For those who are uncomfortable using a non-FOSS app, I've recreated a similar workflow using the open source Key Mapper application, which is on F-Droid. (I remapped Volume Up to "Space" and Volume Down to "1".) The main drawback is that due to the way the app is designed, you need to enable the app both as an accessibility service and as a keyboard, which is potentially far more intrusive from a privacy point of view, if you don't trust the app. (Disclaimer: I have no affiliation with Key Mapper.) |
+1 for this feature. This would be so useful but I'm not particularly excited about having to use 3rd party apps and remap keys to do it. |
Originally reported on Google Code with ID 2124
Reported by
sunshinekisses
on 2014-05-26 13:31:30The text was updated successfully, but these errors were encountered: