Comments (2)
Some kind of hack in the editor listening to key events should do the job:
https://stackoverflow.com/questions/7091538/is-it-possible-to-disable-ctrl-f-of-find-in-page
from filestash.
Alright, it won't work, browser vendors have decided not to allow js to overwrite their own shortcut.
Basically I tried:
componentDidMount(){
window.addEventListener("keydown", this._force_emacs_shortcut);
.....
}
componentWillUnmount(){
window.addEventListener("keydown", this._force_emacs_shortcut);
.....
}
_force_emacs_shortcut(e){
const ctrln = e.ctrlKey && e.keyCode === 78;
const ctrlw = e.ctrlKey && e.keyCode === 87;
console.log("SHORTCUT TEST", ctrln, ctrlw, e);
if(ctrln || ctrlw){
console.log("PREVENT");
e.preventDefault();
}
}
Result is, nothing is triggered from Firefox and Chrome ....
from filestash.
Related Issues (20)
- [bug] Download option disappears when viewing search results HOT 2
- [bug] Self-hosted Filestash serving static files very slowly and finally show a blank page
- [bug] Share link WebDAV doesn't work HOT 1
- [support] cannot add iframe to web
- [bug] vsftpd download issue HOT 7
- Share links remain even after deleting the file/directory HOT 1
- [Bug] Docker CA Certs are outdated HOT 5
- Fix polish locale HOT 1
- [bug] "Local" storage backend not available in latest docker container HOT 1
- [bug] Git not working HOT 2
- Unable to paste text into the editor using CTRL-V HOT 1
- OnlyOffice integration broken since refactor to make configuration dynamic
- Files not found [bug]
- [bug] Host setting reset when updating Docker container HOT 1
- [bug] "Oops! Invalid account" when using password_only middleware for local folder
- How do I maintain the AWS authentication session? HOT 1
- "machines/filestash:latest" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf" HOT 1
- Add Groovy syntax highlighting support using CodeMirror
- [bug] SMB host variable BUG HOT 1
- [bug] fullscreen viewer doesn't work from an iframe HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filestash.