shubham1172 / remote-play

Media controller for PC
MIT License
31 stars 28 forks source link

On screen keyboard #23

Open shubham1172 opened 3 years ago

shubham1172 commented 3 years ago

Sometimes one might want to enter text from their remote. Allow entering text!!

Clickedbigfoot commented 3 years ago

I have a solution that calls a prompt to input text. It's nice as it allows android users to use swype and this doesn't need to download/create a whole new virtual keyboard. Would that suffice or do we want an entire virtual keyboard to appear on the screen?

shubham1172 commented 3 years ago

Yes, absolutely. For the prompt, we can customize such that the user actually does not see the characters there. It could just relay the key presses to the server. Just an idea, but feel free to suggest alternatives.

Clickedbigfoot commented 3 years ago

Sorry, I think I misspoke; my solution calls window.prompt() so there isn't much room for customization there to my knowledge

shubham1172 commented 3 years ago

Ah, I see. So instead of relaying key presses, we first take the input from the user and then pass on the string.

The user needs to make sure to select some active text input on their computer (using the trackpad), and then write their string in the prompt which we send over to the server and make pyautogui copy the text to the actual input.

I can see this totally working, but I am thinking about the flow between the user and the computer: Say I want to search for "The Office" on Netflix. I'd probably write "The O" and the autocomplete on Netflix will suggest "The Office" based on my history. If I type letter-by-letter, it works better most of the times and feels natural (since most use cases of this will be search).

Anyway, this was just a thought, which by the way is totally okay to park for later. Let me know what you think.

Clickedbigfoot commented 3 years ago

The autocomplete is a good point - we rarely type things in their entirety before seeing the target in the suggestions. I'll take a deeper look into making this more of an instant-feedback keyboard option then

AvijitReact commented 2 years ago

Can I work on this issue? Is this repo still active?

Clickedbigfoot commented 2 years ago

Hi Avijit, feel free to work on this. I have fallen behind on time

AvijitReact commented 2 years ago

Thanks Brandon and Shubham. I will start working on it.

shubham1172 commented 2 years ago

@AvijitReact feel free to use this thread for any discussions as you make progress on the task.