Created
July 22, 2018 23:05
-
-
Save nedzadarek/17843d1a28c4b9216c9ebb4981412e53 to your computer and use it in GitHub Desktop.
Probe `event` type from view/vid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
probe-event: function [e] [ | |
fields: [ | |
type | |
; face window ; big objects - do you need them? | |
offset key picked flags away? down? mid-down? alt-down? ctrl? shift?] | |
foreach field fields [ | |
prin mold field | |
print ": " | |
probe e/:field | |
] | |
] | |
view [base red focus on-key [probe-event event]] | |
; view [base red focus on-key-down [probe-event event]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
system/catalog/accessors
like in here: gitter/help.