add {cmd,ctrl} + l for wunderbar focus #2003
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#2003
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "wunderbar-shortcut"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For part of #1395
Also got rid of prop types and unused files
Why is this commented out?
@ -40,1 +52,4 @@
handleKeyDown(event: SyntheticKeyboardEvent<*>) {
const { ctrlKey, metaKey, keyCode } = event;
const { doFocus, doBlur, focused } = this.props;
Does this correctly remove the event? Using
bind
above creates a handle that isn't stored.I wanted to get rid of
prop-types
since we aren't using it. This is from a third party library but we needed to make a change to the component so I just copied it in.I still wanted to keep them for documentation.
@ -40,1 +52,4 @@
handleKeyDown(event: SyntheticKeyboardEvent<*>) {
const { ctrlKey, metaKey, keyCode } = event;
const { doFocus, doBlur, focused } = this.props;
👍 I'll move the
bind
into the constructor and usethis.handleKeyDown
for both.Love the addition of keyboard shortcuts.
This isn't a PR blocker and can be considered more for the next round/addition, but if keyboard shortcuts are intended to be global, a design that allows them to be cleanly separated and grouped is likely preferable to one that puts them throughout individual components.