From 651d883672edacdb0c5c5844a3a6d3ded8bcda22 Mon Sep 17 00:00:00 2001 From: Toxblh Date: Sun, 22 Apr 2018 23:31:05 +0100 Subject: [PATCH] + delete button. Close #37 --- MTMR/ItemsParsing.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index 68d8600..515b7a5 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -44,6 +44,7 @@ class SupportedTypesHolder { typealias ParametersDecoder = (Decoder) throws ->(item: ItemType, action: ActionType, longAction: LongActionType, parameters: [GeneralParameters.CodingKeys: GeneralParameter]) private var supportedTypes: [String: ParametersDecoder] = [ "escape": { _ in return (item: .staticButton(title: "esc"), action: .keyPress(keycode: 53), longAction: .none, parameters: [.align: .align(.left)]) }, + "delete": { _ in return (item: .staticButton(title: "del"), action: .keyPress(keycode: 117), longAction: .none, parameters: [:])}, "brightnessUp": { _ in let imageParameter = GeneralParameter.image(source: #imageLiteral(resourceName: "brightnessUp")) return (item: .staticButton(title: ""), action: .keyPress(keycode: 113), longAction: .none, parameters: [.image: imageParameter])