// Single source of truth for "is the user currently typing into a field?"
//
// Single-key shortcuts (h/r/p/t/v/?) must never fire while the user is typing
// into a form control or rich-text region, otherwise typing an 'r' in a search
// box would yank them to the resume page. This covers <input>, <textarea>,
// <select>, and any contenteditable host (including its descendants).
export function isTypingTarget(target) {
if (!target || typeof target !== 'object') return false;
const tag = target.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') return true;
// contenteditable: the event target may be the editable host itself or a
// node inside it. isContentEditable reflects the inherited, computed state.
if (target.isContentEditable) return true;
return false;
}
// Single source of truth for "is the user currently typing into a field?"
//
// Single-key shortcuts (h/r/p/t/v/?) must never fire while the user is typing
// into a form control or rich-text region, otherwise typing an 'r' in a search
// box would yank them to the resume page. This covers <input>, <textarea>,
// <select>, and any contenteditable host (including its descendants).
export function isTypingTarget(target) {
if (!target || typeof target !== 'object') return false;
const tag = target.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') return true;
// contenteditable: the event target may be the editable host itself or a
// node inside it. isContentEditable reflects the inherited, computed state.
if (target.isContentEditable) return true;
return false;
}
// Single source of truth for "is the user currently typing into a field?"
//
// Single-key shortcuts (h/r/p/t/v/?) must never fire while the user is typing
// into a form control or rich-text region, otherwise typing an 'r' in a search
// box would yank them to the resume page. This covers <input>, <textarea>,
// <select>, and any contenteditable host (including its descendants).
export function isTypingTarget(target) {
if (!target || typeof target !== 'object') return false;
const tag = target.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') return true;
// contenteditable: the event target may be the editable host itself or a
// node inside it. isContentEditable reflects the inherited, computed state.
if (target.isContentEditable) return true;
return false;
}
$ cd ~/
_
Software developer who's been shipping and maintaining production code since 2014.
Currently building payment systems at a healthcare company
$ cat skills.txt
ReactTypeScriptNode.jsReact NativeGraphQLCI/CD
5 companies•Enterprise scale
jd-match: paste a job description, an LLM scores it against my resume