diff --git a/about.html b/about.html
index f1a621619..e3dce3862 100644
--- a/about.html
+++ b/about.html
@@ -31,15 +31,25 @@
return !0;
};
}
- let cpy = document.getElementById('abt_copy');
document.getElementById('abt_close').onclick = () => { window.close() };;
+ let cpy = document.getElementById('abt_copy');
cpy.onclick = () => {
let ta = document.getElementById('abt_ta');
- ta.select();
- document.execCommand('copy');
- ta.selectionEnd = 0;
+ ta.select();
+ document.execCommand('copy');
+ ta.selectionEnd = 0;
+ };
+ cpy.focus();
+ const abt = document.getElementById('abt');
+ abt.tabIndex = 0;
+ abt.onkeydown = (x) => {
+ if (x.key === 'Escape') {
+ window.close();
+ return !1;
+ } else if (x.key === 'Enter') {
+ cpy.click();
+ }
};
- cpy.hidden = !document.queryCommandSupported('copy');