Fix lint issues.
This commit is contained in:
parent
6e7b419bf4
commit
b7f82944c7
@ -1,8 +1,11 @@
|
|||||||
identifier_name:
|
identifier_name:
|
||||||
min_length: 1
|
min_length: 1
|
||||||
max_length: 40
|
max_length: 40
|
||||||
|
allowed_patterns: ^_.*$
|
||||||
|
|
||||||
line_length:
|
line_length:
|
||||||
warning: 200
|
warning: 200
|
||||||
error: 300
|
error: 300
|
||||||
ignores_comments: true
|
ignores_comments: true
|
||||||
ignores_urls: true
|
ignores_urls: true
|
||||||
|
|
||||||
|
@ -47,7 +47,18 @@ class KeyboardManager {
|
|||||||
|
|
||||||
static func createKeyCommand(title: String, action: String, input: String, modifiers: UIKeyModifierFlags) -> UIKeyCommand {
|
static func createKeyCommand(title: String, action: String, input: String, modifiers: UIKeyModifierFlags) -> UIKeyCommand {
|
||||||
let selector = NSSelectorFromString(action)
|
let selector = NSSelectorFromString(action)
|
||||||
let keyCommand = UIKeyCommand(title: title, image: nil, action: selector, input: input, modifierFlags: modifiers, propertyList: nil, alternates: [], discoverabilityTitle: nil, attributes: [], state: .on)
|
let keyCommand = UIKeyCommand(
|
||||||
|
title: title,
|
||||||
|
image: nil,
|
||||||
|
action: selector,
|
||||||
|
input: input,
|
||||||
|
modifierFlags: modifiers,
|
||||||
|
propertyList: nil,
|
||||||
|
alternates: [],
|
||||||
|
discoverabilityTitle: nil,
|
||||||
|
attributes: [],
|
||||||
|
state: .on
|
||||||
|
)
|
||||||
keyCommand.wantsPriorityOverSystemBehavior = true
|
keyCommand.wantsPriorityOverSystemBehavior = true
|
||||||
return keyCommand
|
return keyCommand
|
||||||
}
|
}
|
||||||
@ -96,7 +107,6 @@ private extension KeyboardManager {
|
|||||||
default:
|
default:
|
||||||
return key
|
return key
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static func createKeyModifierFlags(keyEntry: [String: Any]) -> UIKeyModifierFlags {
|
static func createKeyModifierFlags(keyEntry: [String: Any]) -> UIKeyModifierFlags {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user