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
}



Why choose YITAHOME Sectional Sofa Bed?
- Upgraded and thickened wooden slats. The thickness of the wooden slats under our cushions increases from 3.1 inches to 4.7 inches, ensuring its stability and longer service life.
- Focus on details - We upgraded the chaise longue's lift from a spring rod to a hydraulic cushioned lift, which ensures the smooth use of the storage function while solving potential accidents caused by the rapid lifting of ordinary spring lift.

The Details about YITAHOME L-Shaped Sleeper Sofa
High resilience sponge backrest and cusion
The high-resilience sponge backrest and seat cushion give you a better sitting and sleeping experience. The special high-resilience sponge will rebound immediately after the vacuum bag is opened.
Soft Fabric and Storage Side Pocket
Our sofa bed is covered with teddy fleece fabric, which is soft, comfortable, skin-friendly, breathable, wear-resistant and durable, and has a very stylish appearance.
Pratical Storage Chaise and Pull-Out Bed
YITAHOME sectional sofa features a chaise with large storage space, which is practical and convenient for home life to store pillows, quilts and other items.
Is the storage chaise on the left or right?
Our storage chaise can be installed on both the left and the right. Normally it is installed on the right hand side (the right side when sitting on the sofa). If you need to install it on the left hand side, you need to adjust the buckle.
How many packages does this product ship in?
Our L sofa bed is shipped in two packages. Please pay attention to the logistics information, the 2 packages may arrive one after another.
From the brand

YITAHOME lIVING ROOM SOFA
YITAHOME is committed to providing customers with high-quality furniture, and the sofa series is designed for different scenarios.
YITAHOME Beige&Grey sofa bed
YITAHOME Velvet Sofa Bed
Cat-Scratch-Proof sofa bed