Skip to content

scripting: Introduce ShortcutHandler

Vlad Zahorodnii requested to merge work/zzag/scripting-shortcut-handler into master

The ShortcutHandler type provides scripts QML idiomatic way to register global shortcuts.

There's one caveat about this API though. Since KGlobalAccel does not allow to change the shortcut by repeating KGlobalAccel::setShortcut(), the ShortcutHandler requires the default shortcut to be set before it's constructed.

Merge request reports

Loading