Product Description
function logShoppableMetrics(moduleName, showsAddToCart) {
if (window.ue && window.ue.count) {
window.ue.count("aplus:shoppable:" + moduleName + ":addToCart", showsAddToCart ? 1 : 0);
}
}
/**
* 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
}



Can each piece of this modular sofa be used separately?
Yes, each piece (the armchair, loveseat, sofa, and coffee table) can be used individually or combined as needed
What size of room is this modular sofa suitable for?
The modular design allows you to adapt the sofa to various room sizes. You can arrange the pieces to fit both small and large spaces effectively
Can the pieces of the sofa be moved and rearranged easily?
Absolutely. All pieces are designed to be moved and rearranged, allowing you to customize your seating arrangement to fit your space
What material is the upholstery of the sofa made from?
The sofa is upholstered in high-quality polyester fabric, which is durable and easy to clean. We offer 3 color options to match your decor
What materials are used for the sofa's frame and structure?
The sofa's frame is made of sturdy wood, ensuring stability and durability. The construction is designed to withstand everyday use
Similar product recommendations!