ShortcutController.newForModel

Creates a new shortcut controller that takes its shortcuts from the given list model.

A controller created by this function does not let you add or remove individual shortcuts using the shortcut controller api, but you can change the contents of the model.

Parameters

modela [gio.list_model.ListModel] containing shortcuts

Returns

a newly created shortcut controller