本文へ移動
cccskills
無料GitHub で公開

gnome-shortcuts-window

Add a Keyboard Shortcuts help window (Ctrl+question) listing all app accelerators, plus the standard GNOME accelerator set. Use when wiring keyboard shortcuts or the Keyboard Shortcuts menu item.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Skill: Keyboard Shortcuts Window

The "Keyboard Shortcuts" item in the primary menu (accelerator Ctrl+? / <primary>question) opens a searchable shortcuts overview.

libadwaita ≥ 1.6: AdwShortcutsDialog (preferred)

using Gtk 4.0;
using Adw 1;

Adw.ShortcutsDialog shortcuts_dialog {
  Adw.ShortcutsSection {
    title: _("General");
    Adw.ShortcutsItem { title: _("Show Shortcuts"); accelerator: "<primary>question"; }
    Adw.ShortcutsItem { title: _("Preferences");    accelerator: "<primary>comma"; }
    Adw.ShortcutsItem { title: _("Quit");           accelerator: "<primary>q"; }
  }
  Adw.ShortcutsSection {
    title: _("Documents");
    Adw.ShortcutsItem { title: _("New Document");   accelerator: "<primary>n"; }
    Adw.ShortcutsItem { title: _("Save");           accelerator: "<primary>s"; }
  }
}

Older libadwaita: use Gtk.ShortcutsWindow (same structure with GtkShortcutsSection/Group/Shortcut; note it is deprecated in GTK 4.18+).

Wiring

self.create_action('shortcuts', self._on_shortcuts, ['<primary>question'])

def _on_shortcuts(self, action, param):
    builder = Gtk.Builder.new_from_resource('/org/example/MyApp/shortcuts.ui')
    builder.get_object('shortcuts_dialog').present(self.props.active_window)

Standard GNOME accelerators (use these, don't invent)

AcceleratorActionAcceleratorAction
<primary>nNew window/doc<primary>fFind
<primary>oOpen<primary>hFind and replace
<primary>sSave<primary>z / <primary><shift>zUndo / Redo
<primary><shift>sSave as<primary>x/c/vCut/Copy/Paste
<primary>pPrint<primary>aSelect all
<primary>wClose tab/window<primary>plus/minus/0Zoom in/out/reset
<primary>qQuitF1Help
<primary>commaPreferencesF9Toggle sidebar
<primary>questionShortcutsF10Open primary menu
<primary>tNew tabF11Fullscreen
<primary>Page_Down/Page_UpNext/previous tabEscapeCancel/close

Rules:

  • Every menu item that has a shortcut shows it automatically (GMenu does this).
  • Never override the standard set with different meanings.
  • Alt+letter mnemonics come free from use-underline: true + _ in labels.

Full table: reference/hig/keyboard.md.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add a standard AdwAboutDialog wired to app metadata, plus the AppStream metainfo file it should share data with. Use when adding an About entry, release notes, credits, or preparing app metadata.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

Make a GTK4/libadwaita app accessible — accessible labels and roles, tooltips on icon-only buttons, keyboard navigation, contrast, and testing with Orca/Accerciser. Use when fixing a11y issues or running the accessibility category of a HIG audit.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

Responsive GNOME layouts: AdwBreakpoint conditions, BreakpointBin, MultiLayoutView, BottomSheet, narrow/wide layout swaps. Use when making an app work on phones or narrow windows.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

Onboarding tour with AdwCarousel and navigation dots, skippable welcome screens. Use when adding a first-run tour or feature showcase to a GNOME app.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

Implement GNOME's 4-tier destructive-action pattern: undo toasts instead of confirmation dialogs, AdwAlertDialog for irreversible actions. Use when adding delete, remove, clear, or other destructive actions.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

Loading, empty, and error states with AdwStatusPage and AdwSpinner — placeholder icons, titles, action buttons. Use when an app view can be empty, loading, or failed.

日本語の概要は準備中です。原文の説明を表示しています。

hanthor/gnome-gui-spec32026年10月11日 更新

hanthor のスキルをすべて見る

このスキルの問題を報告する