yuliskov / LeanKeyboard

Keyboard for Android TV devices (set-top-boxes, TVs etc)
https://www.patreon.com/yuliskov
GNU General Public License v3.0
196 stars 49 forks source link

Add Support for Amazon Fire Remote Shortcuts #25

Open DraconicNEO opened 3 years ago

DraconicNEO commented 3 years ago

I think it would be very helpful for the users of Amazon Fire TVs to have support for the Remote button Shortcuts

In case you didn't know what they are:

Menu button - Caps lock on/off

Play/Pause - Enter

Back - Cancel

Fast Forward - Space

Rewind - Delete

You can also use D-pad left and Right to move the cursor back and forth.

Of course This should be an option to enable in settings as it may not be compatible on Non Fire TV devices and/or some people may not want it.

yuliskov commented 3 years ago

good suggestion. thanks.

Regards, Yuriy

On Wed, Dec 30, 2020, 23:01 Draconic NEO notifications@github.com wrote:

I think it would be very helpful for the users of Amazon Fire TVs to have support for the Remote button Shortcuts

In case you didn't know what they are:

Menu button - Caps lock on/off

Play/Pause - Enter

Back - Cancel

Fast Forward - Space

Rewind - Delete

You can also use D-pad left and Right to move the cursor back and forth.

Of course This should be an option to enable in settings as it may not be compatible on Non Fire TV devices and/or some people may not want it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yuliskov/LeanKeyKeyboard/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM7Z6DP2R4NXP4XNO2O7X3SXOIJBANCNFSM4VOWY5YQ .

c0bnut commented 3 years ago

Second this, could you also add support for Alexa voice with FireTV and FireStick products?

DraconicNEO commented 3 years ago

Second this, could you also add support for Alexa voice with FireTV and FireStick products?

I think that would be an awesome idea, although I don't know how well it would work since most of the time the voice button opens the Alexa prompt independent of everything else.

c0bnut commented 3 years ago

I think it should be possible. For example the Amazon prime video app allows you to voice search and it doesn't activate Alexa.

basxto commented 1 week ago

Just dropping the KeyEvents here:

Menu button - KEYCODE_MENU Play/Pause - KEYCODE_MEDIA_PLAY_PAUSE Back - KEYCODE_BACK Fast Forward - KEYCODE_MEDIA_FAST_FORWARD Rewind - KEYCODE_REWIND

But that’s actually not all it can do. For gamepads it uses the following differently:

Enter: right DPAD click - KEYCODE_BUTTON_THUMBR Space: L1 - KEYCODE_BUTTON_L1 Delete: R1 -KEYCODE_BUTTON_R1

Device detection to figure out which shortcuts to show is probably via getSource and this: https://developer.android.com/reference/android/view/InputDevice SOURCE_GAMEPAD SOURCE_DPAD SOURCE_HDMI

The original keyboard always shows the shortuts for the device that sent the last keyevent.

basxto commented 1 week ago

I guess this can be closed? It is implemented, the only thing missing is to visually communicate them.