Skip to content

Instantly share code, notes, and snippets.

@nedzadarek
Created July 22, 2018 23:05
Show Gist options
  • Save nedzadarek/17843d1a28c4b9216c9ebb4981412e53 to your computer and use it in GitHub Desktop.
Save nedzadarek/17843d1a28c4b9216c9ebb4981412e53 to your computer and use it in GitHub Desktop.
Probe `event` type from view/vid
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]]
@nedzadarek
Copy link
Author

Use system/catalog/accessors like in here: gitter/help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment