Skip to content

Commit a9734d9

Browse files
authored
Merge pull request #41 from cemolcay/feature/cemolcay-autocap-support
Feature/cemolcay autocap support
2 parents f1bae94 + 92f5a66 commit a9734d9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Keyboard/DefaultKeyboard/CustomKeyboard.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class CustomKeyboard: UIView, KeyboardLayoutDelegate {
3737
case Symbols
3838
}
3939

40-
private(set) var keyboardLayoutState: CustomKeyboardLayoutState = .Letters(shiftState: CustomKeyboardShiftState.Once) {
40+
public private(set) var keyboardLayoutState: CustomKeyboardLayoutState = .Letters(shiftState: CustomKeyboardShiftState.Once) {
4141
didSet {
4242
keyboardLayoutStateDidChange(oldState: oldValue, newState: keyboardLayoutState)
4343
}
@@ -166,8 +166,12 @@ public class CustomKeyboard: UIView, KeyboardLayoutDelegate {
166166
}
167167

168168
// MARK: Capitalize
169+
public func switchToLetters(shiftState shift: CustomKeyboardShiftState) {
170+
keyboardLayoutState = .Letters(shiftState: shift)
171+
}
172+
169173
public func capitalize() {
170-
keyboardLayoutState = .Letters(shiftState: .Once)
174+
switchToLetters(shiftState: .Once)
171175
}
172176

173177
// MARK: Backspace Auto Delete

KeyboardLayoutEngine.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "KeyboardLayoutEngine"
19-
s.version = "0.9.5"
19+
s.version = "0.9.6"
2020
s.summary = "⌨️ Simplest custom keyboard generator for iOS ever!"
2121

2222
# This description is used to generate tags and improve search results.
@@ -336,7 +336,7 @@ optional func defaultKeyboardDidPressReturnButton(defaultKeyboard: DefaultKeyboa
336336
# Supports git, hg, bzr, svn and HTTP.
337337
#
338338

339-
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.5" }
339+
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.6" }
340340

341341

342342
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

0 commit comments

Comments
 (0)