Combine hold-to-select character implementation #5
Labels
feature
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Hold-to-select characters have been the hardest part of the Scribe UI to implement. One of the issues that would be good for a first time contributor would be to combine all the functions related to in into one. Currently at the bottom of KeyboardViewController.swift there's the function
setAlternatesView
. This function is followed by a series of functions for each of the keys that can be held to select other options - exaLongPressedSelectAlternates
. This was necessary as it has been difficult to derive which key was being pressed from thesender
argument insetAlternatesView
. Once that be be derived all of theLongPressedSelectAlternates
functions could be combined into one that simply checks which key. This one function would further be set forUILongPressGestureRecognizer
for each of the given keys.The text was updated successfully, but these errors were encountered: