Skip to content
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

keyPressed isn't fired? #109

Open
josh990 opened this issue Nov 7, 2016 · 2 comments
Open

keyPressed isn't fired? #109

josh990 opened this issue Nov 7, 2016 · 2 comments

Comments

@josh990
Copy link

josh990 commented Nov 7, 2016

I am developing a keyboard that analyzes the user input.
I found the function keyPressed(key: Key) in KeyboardViewController.swift, but can't seem to use it to actually get what's typed (a print doesn't work, and putting a breakpoint neither).
Where is the function in charge of handling user inputs?

@dawand
Copy link

dawand commented Nov 10, 2016

You need to select the Keyboard extension scheme (not the hosting app) and open it within an app to get the console logs from the keyboard

@AaronFW
Copy link

AaronFW commented Nov 11, 2016

@josh990 For the sake of clarity, I will include a picture of what @dawand is talking about:
screen shot 2016-11-10 at 7 32 11 pm

Also, relatedly, when I archived my project and uploaded it to iTunes connect, it combined the two and I was unable to select the "Keyboard" in that particular menu. Instead, I had to go go through the top toolbar "Product > Scheme > Keyboard".

screen shot 2016-11-10 at 7 35 50 pm

Let us know if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants