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
}
Multi-Functional Table for Your Home


1 Home Office 2 Bedroom 3 Living Room
1 Anti-Scratch Foot 2 Fabric Drawers 3 Charging Station
What should I do if the light is not working?
First, try connecting the light strip to the controller on a different side (blue or black). If it still does not work, please reach us. We will be happy to help you identify and resolve the issue.
The location of the light strip?
It is located under the desktop and can be easily installed or detached. You have the option to use it with or without the light based on your preference.
How much weight can the drawer hold?
The drawer is made of fabric, but we have increased the thickness of both its bottom part and panel. It can safely hold 3-4 notebooks (B5, 300 pages) in terms of weight.
Brief content visible, double tap to read full content.Full content visible, double tap to read brief content.
Videos
Page 1 of 1Start OverPage 1 of 1Videos for this product




2:03
Click to play video


Honest Review of Electric Nightstand
Miette

Upload your video
{"directedCustomerId":"","conversationHistoryId":"testConversationHistoryId","requestId":"testRequestId"}
Looking for specific info?
Product information
Collapse All