feat(actions): improve keyboard shortcut display

Previously, the logic for displaying keyboard shortcuts was all over the place. This commit creates a single KeyboardShortcut component that is responsible for displaying it. It slightly changes some styles in the Kbd component, and also adds the Tauri `os` plugin to determine whether to display Mac symbols or Windows names. It also maps cmd to Ctrl on Windows.
This commit is contained in:
ByteAtATime 2025-06-29 11:32:18 -07:00
parent 4a580ce5b9
commit 8852c73f5a
No known key found for this signature in database
16 changed files with 151 additions and 88 deletions

View file

@ -201,6 +201,7 @@ fn setup_input_listener(app: &tauri::AppHandle) {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
let app = tauri::Builder::default()
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_http::init())