-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle Side menu with keyboard shortcuts #81
Conversation
fix: widgetHead fix overflow: removal of uncessary css
refractor: removal of uncessary css
New Feature: toggle side menu o control or cmd B
toogle on keyboard shortcut logic improvement
Adding a keyboard shortcut to toggle side menu
|
preventinf re attachment on every render
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prevention of reattachment of the handlekeypress function in every render
(event: KeyboardEvent) => { | ||
if ((event.ctrlKey || event.metaKey) && event.keyCode === 66) { | ||
setIsFullWidth(!isFullWidth); | ||
console.log(isFullWidth); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it
removal of console.log from handleKeypess function
Removal of of console.log from handlekeypress function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely Done
Adding a new feature which allows user to toggle the side menu with a keyboard shortcut
Which is the combination of the following keys
Control/CMD + B
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this introduce a breaking change?
Other information