Skip to content

Commit

Permalink
fix: support meta key and home/end shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernxst committed May 22, 2024
1 parent e097719 commit d7c2b25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/cmdk/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ export function createCommand(props: CommandProps) {
const items = getValidItems(rootEl);
const item = items[index];
if (!item) return;
updateState('value', item.getAttribute(VALUE_ATTR) ?? '');
}

function updateSelectedByChange(change: 1 | -1) {
Expand Down

0 comments on commit d7c2b25

Please sign in to comment.