Transition away from switch case for determining keyboard layouts #399
Labels
good first issue
Good for newcomers
hacktoberfest
Included as a part of Hacktoberfest
help wanted
Extra attention is needed
refactor
Refactor code to improve quality
Terms
Issue
The code in KeyboardKeys is currently using switch cases for setting various widths, we want to avoid using switch cases and instead use a more general solution, where we only set the width for the current keyboard being used.
Reference:
Scribe-iOS/Keyboards/KeyboardsBase/KeyboardKeys.swift
Line 255 in 8552280
scalarCapsLockKeyWidth = currentLanguage.scalarCapsLockKeyWidth
scalarReturnKeyWidth = currentLanguage.scalarReturnKeyWidth
scalarSpecialKeysWidth = currentLanguage.scalarSpecialKeysWidth
scalarReturnKeyWidth = currentLanguage.scalarReturnKeyWidth
This is a good first issue for GSoC
The text was updated successfully, but these errors were encountered: