mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
Add escape key for modals
This commit is contained in:
parent
1dc6ef2c76
commit
9caa0407c2
@ -12,6 +12,7 @@
|
||||
* Split icon container dimensions and icon size
|
||||
* Fix delete button by using pixels instead of (r)em
|
||||
* Fix level on mobile
|
||||
* Add new `.is-spaced` modifer for titles and subtitles
|
||||
|
||||
## 0.3.2
|
||||
|
||||
|
@ -24,6 +24,13 @@ jQuery(document).ready(function ($) {
|
||||
$('#modal-ter').removeClass('is-active');
|
||||
});
|
||||
|
||||
$(document).on('keyup',function(e) {
|
||||
if (e.keyCode == 27) {
|
||||
$('html').removeClass('is-clipped');
|
||||
$('.modal').removeClass('is-active');
|
||||
}
|
||||
});
|
||||
|
||||
var $highlights = $('.highlight');
|
||||
|
||||
$highlights.each(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user