This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix focusing search bar with hotkeys
closed-social-glitch-2
Thibaut Girka
5 years ago
committed by
ThibG
parent
c600bcfe1d
commit
b1ed2b1d03
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/flavours/glitch/features/ui/index.js
+ 1
- 1
app/javascript/flavours/glitch/features/ui/index.js
View File
@ -279,7 +279,7 @@ export default class UI extends React.Component {
handleHotkeySearch
=
e
=>
{
e
.
preventDefault
(
)
;
const
element
=
this
.
node
.
querySelector
(
'.
search__
input'
)
;
const
element
=
this
.
node
.
querySelector
(
'.
drawer--search
input'
)
;
if
(
element
)
{
element
.
focus
(
)
;
Write
Preview
Loading…
Cancel
Save