invisible input to prevent repeated deletion

master
Kit Kasune 3 years ago
parent 1d8e370914
commit aff2356efc
  1. 7
      scripts/contextmenu/delete-folder.js
  2. 12
      styles/styles.css

@ -53,7 +53,12 @@ module.exports = () => {
};
cont.appendChild(conf);
cont.appendChild(cxl);
let msm = new Mousetrap();
let iin = document.createElement('input');
iin.className = 'invis';
iin.classList.add('nosel');
cont.appendChild(iin);
iin.focus();
let msm = new Mousetrap(modal);
msm.bind('esc', () => {
lightRefresh();
modalOut.remove();

@ -109,4 +109,14 @@ body {
background-image: linear-gradient(to bottom, #af2188c5 0%, #af2188c5 10%, #fa59cfc5 75%, #fa59cfc5 100%);
}
::-webkit-scrollbar-thumb:hover {background-image: linear-gradient(to bottom, #af2188ff 0%, #af2188ff 10%, #fa59cfff 75%, #fa59cfff 100%);}
::-webkit-scrollbar-thumb:hover {background-image: linear-gradient(to bottom, #af2188ff 0%, #af2188ff 10%, #fa59cfff 75%, #fa59cfff 100%);}
.invis {
position: relative;
left: -1000px;
width: 0;
height: 0;
padding: 0 0;
margin: 0 0;
opacity: 0;
}
Loading…
Cancel
Save