Skip to content

Commit

Permalink
Fix extension keyboard shortcut settings dialog state
Browse files Browse the repository at this point in the history
  • Loading branch information
R-J Lim committed Nov 20, 2022
1 parent ecc35d8 commit 30e251a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/components/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ function KeyBindField({ label, keys, extensionOverridden, onKeysChange, onOpenEx
onKeysChangeRef.current = onKeysChange;
const [editing, setEditing] = useState<boolean>(false);

useEffect(() => setCurrentKeyString(keys), [keys]);

const handleEditKeyBinding = useCallback(
(event: React.MouseEvent) => {
if (event.nativeEvent.detail === 0) {
Expand Down

0 comments on commit 30e251a

Please sign in to comment.