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

Custom keyboard layout #62

Open
srigi opened this issue Jul 15, 2015 · 14 comments
Open

Custom keyboard layout #62

srigi opened this issue Jul 15, 2015 · 14 comments

Comments

@srigi
Copy link

srigi commented Jul 15, 2015

Keyboard layout should be optimized for Clojure.
That means on 1st keyboard variant there should be chars essential to Clojure programing:

( ) [ ] { } # : " ' ` + - =

Maybe this list needs be discussed more.

@mfikes
Copy link
Member

mfikes commented Jul 15, 2015

It is also possible to allow for configuration (but perhaps this would be over-engineering).

See: https://twitter.com/mfikes/status/617821237784543233

@ohurvitz
Copy link

An additional line above the keyboard seem better than a whole new keyboard.
See http://www.textasticapp.com/iphone.html for an example of how you can compress a lot of special characters into that one line.

@asheldo
Copy link
Contributor

asheldo commented Aug 5, 2015

Looking for an accessory toolbar pod to borrow, being new to iOS, I found @tnantoka Editha editor on github:

https://raw.githubusercontent.com/tnantoka/edhita/master/screenshot.png

I will push to a branch/clone a reimpl of the repl controller with the EDHInputAccessoryView. I also had to move the TextInputView off the accessory bar and onto the last cell in the table, more like a repl console in any case. I did not keep the Eval button, but can put that back if needed.

@mfikes
Copy link
Member

mfikes commented Aug 5, 2015

Interesting. The things to perhaps look out for are when you swipe down to eliminate the keyboard. I wonder if that leads to a reasonable experience if the TextInputView is not attached to it. It is worth trying, though.

Another thing to try is having the TextInputView grow if you enter multi-line forms, like it currently does.

I'd try to retain the Eval button (it is useful if you are editing something in the middle of a form and want to evaluate instead of relying on enter to evaluate when at the very end of a form.)

@mfikes
Copy link
Member

mfikes commented Aug 5, 2015

@asheldo Also, perhaps what is currently the TextInputView can be kept but with the accessory view holding 2 subviews, one for the TextInputView and one for the extended row of keys.

Does the extra row of keys make sounds that sound anything like the real keyboard? That'd be really cool if that were implemented.

@asheldo
Copy link
Contributor

asheldo commented Aug 5, 2015

Re-hydrating my Developer account, so I can really test on the iPad. I initially failed with combining the existing bar and the buttons bar as subviews, but I could try that again at some point. I figured by now I would have gotten around to figuring out a Textastic-style composite buttons bar, but no. I've used Textastic on the iPad quite a bit and thought composite buttons were cool, but after a couple of spins with this sliding toolbar, Edhita-style, I think I find it a bit easier/more fluid somehow.
Thanks!
replete-edh-bar
replete-edh-bar-device

@mfikes
Copy link
Member

mfikes commented Aug 5, 2015

Yeah, that top one looks strange, with the input text field floating way up there. The bottom one looks better.

I wonder what this looks like on the iPhone.

@asheldo
Copy link
Contributor

asheldo commented Aug 5, 2015

Thanks, @mfikes! I'll try some different things in https://github.com/asheldo/replete.git -- master currently looks like above.

@mfikes
Copy link
Member

mfikes commented Aug 5, 2015

@asheldo This custom keyboard looks awesome, IMHO, but it is plagued by a subpar implementation (great "look" but bad "feel"):

cjlxg4cwuaahj80

@mfikes
Copy link
Member

mfikes commented Aug 5, 2015

Hey @asheldo, when you get your account re-hydrated, take a look at iOS 9. Some stuff has changed with the keyboard and I'm wondering if that might provide a cleaner solution to all of this. The beta is public so there are probably pictures out there showing what I'm talking about.

@asheldo
Copy link
Contributor

asheldo commented Aug 7, 2015

I pulled in the EDH bar source, tried adding the eval button and click sounds, and correct text box resizing. I haven't tried 9.0 yet, but I did start playing with iPhone in simulator. I'll try a different quick bar at somepoint, as well as moving the text input down to the bar. Thanks again!
photo aug 07 6 53 41 am

@mfikes
Copy link
Member

mfikes commented Aug 7, 2015

That's cool. I tried building the Objective-C branch of that project but it fails with missing headers.

I wonder if we have any flexibility to make it look like the picture I had pasted earlier #62 (comment)

I suspect that we can probably get the text input box margins / etc to look right, with the Eval button on the right (all mimicking the Send button in the messages app). But, I suspect that if we make the additional row of keys look too much like the stock keyboard keys then it would feel odd (because I'm guessing when you tap one of those keys, it probably doesn't do that thing where it reveals what you are pressing.)

With iOS 9, I think some of those buttons near the left of that row of buttons are already there. (And I'm wondering if iOS 9 lets developers add their own buttons, and if so, are they really for things like undo/redo, cursor movement, etc., and not meant for character input.)

@asheldo
Copy link
Contributor

asheldo commented Aug 7, 2015

Sorry, did you pod install?

@mfikes
Copy link
Member

mfikes commented Aug 7, 2015

Ahh. No... will try again. :)

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

4 participants