Comments (1)
Hey, good morning! It's not something I intend to add (as it's not very common as far as UX is concerned), but you can easily add this functionality by adding an event listener to the close button.
e.g.
alertClose.addEventListener('keypress', e => {
if (e.key === 'Enter') {
alertWrapper.remove();
resolve();
}
});
from cute-alert.
Related Issues (17)
- Z-index conflict between cute-alert modes and a modal form. HOT 8
- If you want to show the alert on a different page, opened from a base page, then the pop-ups are not shown HOT 1
- When adding this project to an addon for Firefox warnings are generated HOT 1
- typescript definitions HOT 1
- Uncaught (in promise) ReferenceError: img is not defined HOT 3
- Image in alert is undefined, returns 404 error HOT 7
- Toast bar ios and macos HOT 2
- Add option for close Alert with timer HOT 1
- Little comma near image
- Undefined variable 'url' in line number 215 HOT 4
- how to use it on react js HOT 1
- May you make a tutorial to explain how your cade works? HOT 1
- new instances duplicate on page HOT 6
- If the library is included into an addon with manifest, then the svg images are not shown HOT 1
- If you have included the library into an add-on, then the cute-alert.js is not recognised HOT 1
- If the body does not have a parent, then the instruction insertAdjacentHTML('afterend' does not work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cute-alert.