-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Add "F2" shortcut for rename the connection. You can listen for key down event here (https://github.com/invisal/query-master/blob/main/src/renderer/screens/HomeScreen/index.tsx#L204)
You can add the shortcut key at the Keybinding provider (https://github.com/invisal/query-master/blob/main/src/renderer/contexts/KeyBindingProvider.tsx)
You can use context to access the keybinding
const { binding } = useKeybinding();
const keyRenaming = binding['rename'];
The keybinding has nice method for get the matching
keyRenaming.match(e)
To trigger rename, you can simply setRenameSelectedItem(true)
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers