- Refactored the App component to utilize a new SearchCard component for rendering search results. - Introduced a Settings page with FolderPicker and Shortcuts components for user configuration. - Removed the ImagePage component as it was no longer needed. - Updated routing to include the new Settings page and adjusted imports accordingly. - Added a settings button to the main interface for easy access to the new settings functionality.
5 lines
166 B
TypeScript
5 lines
166 B
TypeScript
export const isModifierKey = (key: string): boolean => {
|
|
const modifiers = ["Control", "Shift", "Alt", "Meta", "Command"];
|
|
return modifiers.includes(key);
|
|
};
|