PreferencesWindow.canNavigateBack

bool canNavigateBack() @property

Get canNavigateBack property.

Returns

Whether gestures and shortcuts for closing subpages are enabled.

The supported gestures are:

  • One-finger swipe on touchscreens
  • Horizontal scrolling on touchpads (usually two-finger swipe)
  • Back mouse button

The keyboard back key is also supported, as well as the

<kbd>Alt</kbd>+<kbd>←</kbd> shortcut.

For right-to-left locales, gestures and shortcuts are reversed.

Deprecated

Use property@NavigationPage:can-pop instead.

Has no effect for subpages added with [adw.preferences_window.PreferencesWindow.pushSubpage].

void canNavigateBack(bool propval) @property

Set canNavigateBack property.

Parameters

propvalWhether gestures and shortcuts for closing subpages are enabled. The supported gestures are: One-finger swipe on touchscreens Horizontal scrolling on touchpads (usually two-finger swipe) * Back mouse button The keyboard back key is also supported, as well as the <kbd>Alt</kbd>+<kbd>←</kbd> shortcut. For right-to-left locales, gestures and shortcuts are reversed.

Deprecated

Use property@NavigationPage:can-pop instead.

Has no effect for subpages added with [adw.preferences_window.PreferencesWindow.pushSubpage].