Skip to content
This repository has been archived by the owner on Sep 23, 2019. It is now read-only.

Commit

Permalink
Fix Adonit shortcut button crash
Browse files Browse the repository at this point in the history
rofreg committed Jul 1, 2016
1 parent 30dab28 commit f0b9297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PinchPad/ViewController.swift
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ class ViewController: UIViewController{
// MARK: Adonit handling

func enableAdonitShortcutButtons() {
let switchLayersShortcut = JotShortcut.init(descriptiveText: "Switch layers", key: "switchLayers", target: self, selector: #selector(ViewController.switchLayers))
let switchLayersShortcut = JotShortcut.init(descriptiveText: "Switch layer", key: "layer_switch", target: self.canvas, selector: #selector(CanvasScrollView.switchLayers))

JotStylusManager.sharedInstance().addShortcutOptionButton1Default(switchLayersShortcut)
JotStylusManager.sharedInstance().addShortcutOptionButton2Default(switchLayersShortcut)

0 comments on commit f0b9297

Please sign in to comment.