
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
ember-handle-keys-helper
Advanced tools
Handle keyboard events directly in templates with `{{on}}` modifier.
{{handle-keys}}
helperEmber helper for handling keyboard events directly in templates together with the {{on}}
modifier.
It returns a KeyboardEvent
handler which will call your function, if the key
property of the event matches your target keys (e.g. "Escape"
or "ArrowUp"
).
Main features:
preventDefault
/stopPropagation
on matched eventsIE
and Edge
ember install ember-handle-keys-helper
A single key:
<Player {{on 'keydown' (handle-keys @pause 'Escape')}} />
Multiple keys for the same handler:
<Player {{on 'keydown' (handle-keys @pause 'Escape' 'Delete')}} />
With stopPropagation
(it will only be called on a matched event):
<Player {{on 'keydown' (handle-keys @play 'Enter' stopPropagation=true)}} />
Multiple handlers with multiple {{on}}
modifiers:
<Player
{{on 'keydown' (handle-keys @play 'Enter')}}
{{on 'keydown' (handle-keys @pause 'Escape')}}
/>
Multiple handlers with a single {{on}}
modifier and {{queue}} helper:
<Player
{{on
'keydown'
(queue
(handle-keys @play 'Enter')
(handle-keys @pause 'Escape')
(handle-keys @volumeUp 'ArrowUp')
(handle-keys @volumeDown 'ArrowDown')
(handle-keys 'ArrowUp' 'ArrowDown' preventDefault=true)
)
}}
/>
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Handle keyboard events directly in templates with `{{on}}` modifier.
The npm package ember-handle-keys-helper receives a total of 4 weekly downloads. As such, ember-handle-keys-helper popularity was classified as not popular.
We found that ember-handle-keys-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.