Product Description
/**
* Common event handler for click and keydown events.
* @param {Event} event - The event object.
* @param {Function} handleClickOrEnter - Function to handle click or Enter key events.
* @param {Function} handleEsc - Function to handle Esc key events.
*/
// [TODO][AplusMantle-8064] Create common event handler util(key events, click events) in AplusModuleResources
function handleClickAndKeyEvents(event, handleClickOrEnterOrSpace) {
const ENTER_KEY_CODE = 13;
const ESCAPE_KEY_CODE = 27;
const SPACE_KEY_CODE = 32;
const isClick = event.type === 'click';
const isKeydown = event.type === 'keydown';
const isEnter = isKeydown && event.keyCode === ENTER_KEY_CODE;
const isSpace = isKeydown && event.keyCode === SPACE_KEY_CODE;
const isEsc = isKeydown && event.keyCode === ESCAPE_KEY_CODE;
if (isClick || isEnter || isSpace) {
handleClickOrEnterOrSpace();
} else if (isEsc) {
handleEsc(event);
}
}
/**
* Function to handle esc key event.
* @param {Event} event - The event object.
*/
function handleEsc(event) {
event.target.blur()// force remove focus
}





Material Wood, Chenille Fabric Color Off White Overall Dimensions 30.7"D x 77.2"W x 28.7"H Weight Capacity 1000 lbs Required Assembly Yes
What should I do if I don't find the instruction in package?
Please be easy, we can send you a digital instruction in PDF
What should I do if there are missing or damaged parts?
Sorry for the trouble, please confirm the numbers or letters of this parts according to the instruction, with which we can exactly resend the pieces you need
What should I do if I have difficulties with installation?
Don't worry, you can find detailed guidance in the manual. And if you need, we could provide further assistance
From the brand


About HOSTACK
HOSTACK is a furniture brand that combines innovation, aesthetics, functionality and durability to design every product. It aims to provide the whole house furniture via one stop shopping with affordable price. It hopes customer enjoy the shopping experience and therefore become a valuable choice for all families



White Collection
Visit the Store


Kids Toy Storage Collection
Visit the Store
Chenille Sofa Collection
Visit the Store


Grey Dresser Collection
Visit the Store
