Comments (7)
Actually, cmd-h is not the only one. The question on "minimize window" also hides user's own window. (Cmd-M).
from keyboard-shortcuts-practice.
Actually, make that rest of the question set, because none of the answer that require Cmd works.
from keyboard-shortcuts-practice.
I think a solution @amychan331 would be to add e.preventDefault()
to the end of this handle
function.. This function could use some indentation cleanup as well, maybe a separate issue.
from keyboard-shortcuts-practice.
@shiftyp Having indentation fix as a separate issue was actually talked about in #35, so I made another pull request for the indentation(#36). For some strange reason, when I merge the changes for indentation, #35 also merged. So I will probably create another pull request later...
Actually, I did tried the handle function with e.preventDefault(), but it didn't have any effects.
from keyboard-shortcuts-practice.
You're right, it's a bit tricker than that. I put together a JSFiddle with a solution, which involves preventing the keyDown event default when the meta or ctrl keys are engaged. You also need to prevent the keyPress. I found this stackOverflow particularly helpful in putting together a solution.
from keyboard-shortcuts-practice.
Add next & previous buttons for commands which cannot be overridden.
from keyboard-shortcuts-practice.
duplicate of #45
from keyboard-shortcuts-practice.
Related Issues (20)
- Bug: npm start cannot work on Windows HOT 4
- fix a vulnerability HOT 7
- [refactor] Replace repetitive if blocks with lookup HOT 3
- [jQuery] Replace jQuery.text function with native function HOT 3
- Delete unneeded files HOT 2
- Replace use of jQuery add/remove class HOT 2
- Replace window resizing listener with CSS HOT 2
- Test prod-like functionality
- [Refactor] Consolidate all API calls into an api-client.js file HOT 2
- Add indexes needed by common queries HOT 8
- Show Hint. After switch between questions, some keys still highlighted. HOT 2
- Fix jasmine API test authorization bug
- Deploy our new web app! HOT 5
- Add prettier support and enforce with commit hook HOT 2
- Add 'defer' attributes to script tags in index.ejs HOT 2
- Add a nice favicon HOT 17
- Setup webpack for the browser JavaScript HOT 2
- Replace jQuery ajax with fetch HOT 6
- Add ability to retrieve timing history for a single question HOT 10
- [jQuery] Replace CSS toggle class with built-in function HOT 2
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 keyboard-shortcuts-practice.