Skip to content

Keyboard Shortcuts #256

@christgau

Description

@christgau

Maybe I miss something, but I would appreciate if the greeter would support keyboard shortcuts, especially for shutdown/reboot. In test mode, there is support:

case Gdk.Key.z:
if (SlickGreeter.singleton.test_mode && (event.state & Gdk.ModifierType.MOD1_MASK) != 0)
{
show_shutdown_dialog (ShutdownDialogType.SHUTDOWN);
return true;
}
break;
case Gdk.Key.Z:
if (SlickGreeter.singleton.test_mode && (event.state & Gdk.ModifierType.MOD1_MASK) != 0)
{
show_shutdown_dialog (ShutdownDialogType.RESTART);
return true;
}
break;

It would be great if they were configurable, but I would also be happy with sensible defaults, such as those used by gtk-greeter: https://github.com/Xubuntu/lightdm-gtk-greeter/blob/9f22ff36df4114d9ebb484afd90b5e58149f15a1/src/lightdm-gtk-greeter.c#L3138-L3143

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions