mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 00:48:19 +01:00
Keyboard/mouse mode and keyboard support bugfixes
This commit is contained in:
committed by
Ken Powers
parent
ed55006f20
commit
2a0a73cfc1
@@ -81,6 +81,10 @@ export const StickerPreviewModal = React.memo(
|
||||
// Restore focus on teardown
|
||||
React.useEffect(
|
||||
() => {
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
const lastFocused = document.activeElement as any;
|
||||
if (focusRef.current) {
|
||||
focusRef.current.focus();
|
||||
|
||||
Reference in New Issue
Block a user