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

Add functionality to new keyboard keys on expanded layouts #371

Closed
2 tasks done
andrewtavis opened this issue Oct 16, 2023 · 9 comments
Closed
2 tasks done

Add functionality to new keyboard keys on expanded layouts #371

andrewtavis opened this issue Oct 16, 2023 · 9 comments
Assignees
Labels
-priority- High priority feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

Terms

Description

Now that we have new expanded keyboard layouts thanks to #352, one thing that's needed is to add some styling and functionality to a few new buttons that we have. These include a tab key and a caps lock key.

Contribution

This issue is of high priority as it's needed so that we can release the new keyboard layouts for iPads. With that being said, the changes are not too difficult as it's mostly going in and making changes within the following function

@IBAction func executeKeyActions(_ sender: UIButton) {

We'd need lines for case "indent" and case "uppercase" specifically :)

@andrewtavis andrewtavis added feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 16, 2023
@andrewtavis andrewtavis added the -priority- High priority label Oct 16, 2023
@damien-rivet
Copy link
Contributor

Hey @andrewtavis,

If it's still available, I would love working on this issue.

@andrewtavis
Copy link
Member Author

Hey @damien-rivet! Thanks for your interest in helping out :) It is still available! I'll assign you now, and please let me know if I can do anything to support 😊

damien-rivet added a commit to damien-rivet/Scribe-iOS that referenced this issue Oct 21, 2023
damien-rivet added a commit to damien-rivet/Scribe-iOS that referenced this issue Oct 21, 2023
@damien-rivet
Copy link
Contributor

@andrewtavis I've made good progress on the implementation.

As always, this issue is not as simple as it looks, here's a summary of my current status on it.

Indent key

Nothing fancy here, I added the '\t' character append and I've added the "indent" icon (with support for right-to-left).

Caps lock key

Slightly harder than the indent key as there are behaviour changes locked in with the shift button but in the end it's working like a normal keyboard.

Other

I did some minor refactoring for the keys style update to better separate sizing and styling. I've also started the work to extract the constants for special keys into a dedicated file instead of littering the code with hardcoded string.


I still have some intensive testing to do but once it's cleared out, I'll create a PR with before / after screenshots and recordings to demonstrate the changes.

@andrewtavis
Copy link
Member Author

Thanks for this, @damien-rivet! Really happy to get the support here :) I'll share this with the dev sync we're having in a few minutes, or you'd of course be welcome to join that if you're free 😊 Details for that are on our General channel on Matrix.

@andrewtavis
Copy link
Member Author

@henrikth93, sounds like we should hold off a moment on #362 for these changes, but let's check in after @damien-rivet sends along the PR. I'll merge that very quickly and then we can start right away with the formatting for the various layouts. We can of course discuss in the sync as well! 🥳

@damien-rivet
Copy link
Contributor

@andrewtavis not necessarily, if the changes aren't too drastic I should be able to resolve the potential conflicts when rebasing on main.

damien-rivet added a commit to damien-rivet/Scribe-iOS that referenced this issue Oct 22, 2023
damien-rivet added a commit to damien-rivet/Scribe-iOS that referenced this issue Oct 22, 2023
@damien-rivet
Copy link
Contributor

@andrewtavis I've just opened the PR, let me kow if I need to do some extra stuff to make it compliant.

@andrewtavis
Copy link
Member Author

Sorry for the wait on the PR review, @damien-rivet! As stated I had designs added on to normal work plus open-source, so it's been a week 😅 Very much is compliant, and we just need to figure out the two introduced bugs :)

As stated when I was doing the review, you've gone through a wide range of the code base, and if seen any places where there could be some improvements to quality then please feel free to open an issue!

@andrewtavis andrewtavis moved this from Todo to In Progress in Scribe Board Oct 30, 2023
damien-rivet added a commit to damien-rivet/Scribe-iOS that referenced this issue Oct 30, 2023
Fixed issue with CapsLock state not showing on iPhone.
Added a missing period in a description.
Fixed an issue with the Return key having the wrong color in some cases.
Fixed a crash in Command mode when no input is supplied by the user.
andrewtavis added a commit that referenced this issue Oct 31, 2023
…ty-new-keyboard-expendend-layouts

[#371] Add functionality for new keyboard expanded layout
@andrewtavis
Copy link
Member Author

Closed via #373 and minor formatting in 859bf2f 🥳 Really thanks so much, @damien-rivet! Would be wonderful to work with you again 😊 We have a Matrix community that the team uses to discuss ideas/questions, and we also do a call every two weeks for an hour to discuss bi-weekly plans :) :) The next dev sync will be this Saturday at 14:00 UTC, with the details for that being shared in the General channel on Matrix.

Also happy to also communicate with you on GitHub. As stated in the PR review, you could provide some invaluable support as far as deriving issues to be done for refactoring, bug fixes and the like :)

Thanks and all the best!

@github-project-automation github-project-automation bot moved this from In Progress to Done in Scribe Board Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-priority- High priority feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Archived in project
Development

No branches or pull requests

2 participants