Skip to content

Commit

Permalink
Reset state on scene did become active
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Dec 15, 2019
1 parent 847298f commit 2faa400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Blink/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
if !SmarterTermInput.shared.isRealFirstResponder && scene.activationState == .foregroundActive {
self._spaceController?.focusOnShellAction()
}

}
} else {
SmarterTermInput.shared.reportStateReset()
}
}

Expand Down
3 changes: 2 additions & 1 deletion Blink/SmarterKeys/SmarterTermInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ class SmarterTermInput: KBWebView {
}

func reportStateReset() {
reportStateReset(device?.view?.hasSelection == true)
reportStateReset(false)
device?.view?.cleanSelection()
}

private func _refreshInputViews() {
Expand Down

0 comments on commit 2faa400

Please sign in to comment.