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
}





Do you know the importance of cleaning makeup brushes?
In daily use, makeup brushes can easily become stained with sebum and dust, causing various skin diseases.
Do I need to use cleaning fluid when using makeup brush cleaner to clean brushes?
It can be cleaned with water, but cleaning with cleaning fluid can achieve a cleaner cleaning effect.
What types of brushes are compatible with the makeup brush cleaner machine?
It is compatible with nail brushes, blush brushes, foundation brushes, contour brushes, concealer brushes and eye shadow brushes, etc., suitable for 99% makeup brushes in the market.
How long should I wash the makeup brushes?
Experts recommend cleaning your makeup brushes every two weeks, preventing the build-up of residue on them from causing various skin diseases.