Closed AlexanderJCS closed 7 months ago
The code to modify is in editor/events.js
:
let keyMap = {
"Escape": hideMenu,
"A": () => showMenu(endX, endY),
"F": newFunction,
"R": newInput,
"C": newOutput,
"V": newVariable,
}
The functions being referenced are in actions.js
@Valenciola @jcamille2023 both of you don't have many contributions - do one of you want to take this on?
Sure I’ll take this one on if Jossaya doesn’t
He DMed me this morning about information about it, but haven't seen anything since. I'll update you if you can do it instead
That’s my bad I didn’t realize your refactor pull request was already merged
Sincerely, Jossaya Camille Student, FAU High School
From: AlexanderJCS @.> Sent: Saturday, March 2, 2024 11:01:00 PM To: makaip/mathematix @.> Cc: Jossaya Camille @.>; Mention @.> Subject: Re: [makaip/mathematix] QOL: shift + T and shift + U keybind (Issue #35)
EXTERNAL EMAIL : Exercise caution when responding, opening links, or opening attachments.
He DMed me this morning about information about it, but haven't seen anything since. I'll update you if you can do it instead
— Reply to this email directly, view it on GitHubhttps://github.com/makaip/mathematix/issues/35#issuecomment-1975012644, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCH7XUUMAFDGUTC6FUGLG6DYWKN7ZAVCNFSM6AAAAABECXSPISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGAYTENRUGQ. You are receiving this because you were mentioned.Message ID: @.***>
Currently you can do
shift + F
to create a new function node,shift + R
to make a new input node,shift + V
to make a new variable node, etc.I propose two more keybinds:
shift + T
for a new trig node blockshift + U
for a new unary node blockThis should be a relatively simple addition, but please wait until I make my
events.js
refactor before making any changes. This will cause a merge conflict.The section to modify is the
window.addEventListener("keydown", (event) =>
event in theeditor/events.js
file.