UX improvements
This commit is contained in:
parent
6e9668b7e7
commit
6449580c3b
14
index.html
14
index.html
@ -880,7 +880,7 @@
|
|||||||
document.body.classList.remove('hide-completely')
|
document.body.classList.remove('hide-completely')
|
||||||
document.querySelectorAll('sm-input[data-private-key]').forEach(input => input.customValidation = floCrypto.getPubKeyHex)
|
document.querySelectorAll('sm-input[data-private-key]').forEach(input => input.customValidation = floCrypto.getPubKeyHex)
|
||||||
document.addEventListener('keyup', (e) => {
|
document.addEventListener('keyup', (e) => {
|
||||||
if (e.code === 'Escape') {
|
if (e.key === 'Escape') {
|
||||||
hidePopup()
|
hidePopup()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1302,6 +1302,7 @@
|
|||||||
} else {
|
} else {
|
||||||
previousHash = ''
|
previousHash = ''
|
||||||
}
|
}
|
||||||
|
console.log(previousVersion, clean)
|
||||||
if (previousHash !== hash) {
|
if (previousHash !== hash) {
|
||||||
const timestamp = Date.now()
|
const timestamp = Date.now()
|
||||||
const entry = {
|
const entry = {
|
||||||
@ -1320,7 +1321,6 @@
|
|||||||
floGlobals.generalData[`${floGlobals.currentArticle.id}_gd|${floGlobals.adminID}|${floGlobals.application}`][genDataVC] = res[genDataVC]
|
floGlobals.generalData[`${floGlobals.currentArticle.id}_gd|${floGlobals.adminID}|${floGlobals.application}`][genDataVC] = res[genDataVC]
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(genDataVC)
|
|
||||||
submitButton.classList.add('hide-completely')
|
submitButton.classList.add('hide-completely')
|
||||||
notify('sent data', 'success')
|
notify('sent data', 'success')
|
||||||
if (isUniqueEntry) {
|
if (isUniqueEntry) {
|
||||||
@ -2429,7 +2429,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 100)
|
}, 300)
|
||||||
|
|
||||||
function saveSelection() {
|
function saveSelection() {
|
||||||
if (window.getSelection) {
|
if (window.getSelection) {
|
||||||
@ -12737,7 +12737,7 @@
|
|||||||
this.fireEvent();
|
this.fireEvent();
|
||||||
}
|
}
|
||||||
handleKeyDown(e) {
|
handleKeyDown(e) {
|
||||||
if (e.code === 'Space') {
|
if (e.key === ' ') {
|
||||||
this.toggleState();
|
this.toggleState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -13046,7 +13046,7 @@
|
|||||||
document.body.classList.remove('hide-completely')
|
document.body.classList.remove('hide-completely')
|
||||||
document.querySelectorAll('sm-input[data-private-key]').forEach(input => input.customValidation = floCrypto.getPubKeyHex)
|
document.querySelectorAll('sm-input[data-private-key]').forEach(input => input.customValidation = floCrypto.getPubKeyHex)
|
||||||
document.addEventListener('keyup', (e) => {
|
document.addEventListener('keyup', (e) => {
|
||||||
if (e.code === 'Escape') {
|
if (e.key === 'Escape') {
|
||||||
hidePopup()
|
hidePopup()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -13423,7 +13423,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleKeyDown(e) {
|
handleKeyDown(e) {
|
||||||
if (!this.hasAttribute('disabled') && (e.key === 'Enter' || e.code === 'Space')) {
|
if (!this.hasAttribute('disabled') && (e.key === 'Enter' || e.key === ' ')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.click();
|
this.click();
|
||||||
}
|
}
|
||||||
@ -14332,7 +14332,7 @@
|
|||||||
|
|
||||||
|
|
||||||
detectFocus(e) {
|
detectFocus(e) {
|
||||||
if (e.code === 'Tab') {
|
if (e.key === 'Tab') {
|
||||||
const lastElement = this.focusable[this.focusable.length - 1];
|
const lastElement = this.focusable[this.focusable.length - 1];
|
||||||
const firstElement = this.focusable[0];
|
const firstElement = this.focusable[0];
|
||||||
if (e.shiftKey && document.activeElement === firstElement) {
|
if (e.shiftKey && document.activeElement === firstElement) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user