androidtool-mac icon indicating copy to clipboard operation
androidtool-mac copied to clipboard

Feature request: Keyboard input

Open capnfabs opened this issue 9 years ago • 7 comments

Is there any interest in implementing keyboard input support? i.e. typing on the mac and having the equivalent keystrokes run on the Android device?

adb supports this using adb shell input keyevent. I'd be happy to do the implementation work on this at some stage in the future if there's interest.

capnfabs avatar Jan 28 '16 11:01 capnfabs

That's interesting. What's an example of a use case where you which you had this?

mortenjust avatar Jan 28 '16 14:01 mortenjust

I'm testing an Android tablet app that requires a lot of form filling. It's a lot easier to continue typing on my laptop than switch to tapping away on a touchscreen, to then switch back and make code changes if something's not working. Admittedly, it does sound like a bit of a niche use case :)

capnfabs avatar Jan 28 '16 15:01 capnfabs

Niche use case just might be fine as long as we can find a niche place for it in the UI. Any ideas? Could this be solved with a user script in the plus menu?

mortenjust avatar Jan 28 '16 18:01 mortenjust

I thought about a userscript, but I think we'd actually need UI in order to capture the keystrokes, right? I haven't thought of an elegant way to do that yet.

capnfabs avatar Jan 29 '16 09:01 capnfabs

@mortenjust It's an awesome feature for react-native workflow. 👍

Partysun avatar May 23 '16 08:05 Partysun

@Partysun what makes it an awesome feature when working with react-native?

capnfabs avatar May 24 '16 02:05 capnfabs

React-native gives a fast preview of UI changes. And if you use react-native you can reload your view. You can see this in react-native docs: link

You can also install Frappé, a tool for OS X, which allows you to emulate shaking of devices remotely. You can use ⌘ + Shift + R as a shortcut to trigger a shake from Frappé.

I have connected two emulators and one real device in my developing workflow. Sometimes I want to reload view, and I shake the phone and click the button, or use adb, or use Frappe to trigger a shake and click button action.

Partysun avatar May 24 '16 18:05 Partysun