Skip to content

Instantly share code, notes, and snippets.

@jacobparis
Created January 17, 2017 01:35
Show Gist options
  • Save jacobparis/2640cc69a0d04b05d902b7c01eca10f4 to your computer and use it in GitHub Desktop.
Save jacobparis/2640cc69a0d04b05d902b7c01eca10f4 to your computer and use it in GitHub Desktop.
Toggle
```
// Save
Upon Pressing Enter
+IsSaving == 0
--> (Text) Set Focus On
--> (Text) Set selection to 99999...
// Unsave
Upon Pressing Enter
+IsSaving == 1
--> (Text) Set Focus Off
// Toggle Save
Upon Pressing Enter
-->Set IsSaving to (IsSaving + 1) mod 2
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment