ctrl+w=close window & minor fixes
This commit is contained in:
parent
97c504e79a
commit
e1eb6b5df1
5 changed files with 26 additions and 19 deletions
|
|
@ -1,6 +1,4 @@
|
|||
var html = require('nanohtml'),
|
||||
UiModal = require('./ui-modal'),
|
||||
notifications = require('./notifications'),
|
||||
var notifications = require('./notifications'),
|
||||
loading = null, timeout = null
|
||||
|
||||
module.exports = function uiLoading(title) {
|
||||
|
|
@ -8,7 +6,6 @@ module.exports = function uiLoading(title) {
|
|||
if (title === false && loading) {
|
||||
clearTimeout(timeout)
|
||||
timeout = setTimeout(()=>{
|
||||
console.log('stop')
|
||||
notifications.remove(loading)
|
||||
loading = null
|
||||
}, 500)
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Keys extends Widget {
|
|||
|
||||
keyUp(e) {
|
||||
|
||||
if (e.target && e.target.classList.contains('no-keybinding')) return
|
||||
if (e.target && (e.target.tagName === 'INPUT' || e.target.tabName === 'TEXTAREA' || e.target.tabName === 'SELECT')) return
|
||||
|
||||
e.preventDefault()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue