Styling updates.
This commit is contained in:
11
src/index.js
11
src/index.js
@@ -21,3 +21,14 @@ ReactDOM.render(
|
||||
</Provider>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
window.onkeydown = function (evt) {
|
||||
// disable zooming
|
||||
if (
|
||||
(evt.code === "Minus" || evt.code === "Equal") &&
|
||||
(evt.ctrlKey || evt.metaKey)
|
||||
) {
|
||||
console.log("Preventing zoom!");
|
||||
evt.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user