Joe Politz

Results 194 comments of Joe Politz

Wait, if I do: ``` document.body.addEventListener("keypress", function(e) { console.log(e); }) ``` And type "Shift-K", I get an object with: ``` altKey: false shiftKey: true metaKey: false ctrlKey: false ``` So...

Agreed. I didn't realize part of the goal was to fire key events for standalone modifier keys; I thought you were just saying it was hard to get the modifier...

Concrete proposal: `on-raw-key` is a handler that expects a function with the following signature: ``` state :: a, key :: RawKeyEvent -> a ``` Where `a` is the reactor state...

Proposal: It's a well-formedness error to have both. `on-key` should desugar into a use of `on-raw-key`.

We've discussed this a bunch this morning while resolving https://github.com/brownplt/code.pyret.org/pull/167/files It seems like the `.key` field on the `keydown` event has all the properties needed for this. Browsers have (since...

I totally forgot about headerStyle=small. That's the right thing here, just need to tweak the buttons. Much smaller TODO! On Thu, Jan 27, 2022 at 2:42 PM, Ben Lerner ***@***.***>...

@shriram re the repl option: amusingly, way back there was a “Clear” button that did basically Ctrl-L. I can't find the discussion about it, but it was argued that it...

Yeah, there's a complete() callback on the animation. Clients have to manage the state themselves, but we ought to be able to build an abstraction for this with like, a...

- Thanks for bringing this up. My simple bundling/minifying efforts typically stalled when cpo-main would e.g. crash acorn and esprima (and since that's such a large chunk of code, why...