Example #1
0
       "Enables or disables the Spatial Navigation feature\n\n"
       "Spatial navigation consists in the ability to navigate between "
       "focusable elements in a Web page, such as hyperlinks and form "
       "controls, by using Left, Right, Up and Down arrow keys. For "
       "example, if a user presses the Right key, heuristics determine "
       "whether there is an element he might be trying to reach towards the "
       "right and which element he probably wants."),
      ('links-included-in-focus-chain', SettingValue(typ.Bool(), 'true'),
       "Whether hyperlinks should be included in the keyboard focus chain."
       ),
  )),
 ('tabs',
  sect.KeyValue(
      ('background-tabs', SettingValue(typ.Bool(), 'false'),
       "Whether to open new tabs (middleclick/ctrl+click) in background."),
      ('select-on-remove', SettingValue(typ.SelectOnRemove(), 'right'),
       "Which tab to select when the focused tab is removed."),
      ('new-tab-position', SettingValue(
          typ.NewTabPosition(), 'right'), "How new tabs are positioned."),
      ('new-tab-position-explicit',
       SettingValue(typ.NewTabPosition(), 'last'),
       "How new tabs opened explicitely are positioned."),
      ('last-close', SettingValue(typ.LastClose(), 'ignore'),
       "Behaviour when the last tab is closed."),
      ('auto-hide', SettingValue(
          typ.Bool(), 'false'), "Hide the tabbar if only one tab is open."),
      ('wrap', SettingValue(typ.Bool(),
                            'true'), "Whether to wrap when changing tabs."),
      ('movable', SettingValue(typ.Bool(),
                               'true'), "Whether tabs should be movable."),
      ('close-mouse-button', SettingValue(typ.CloseButton(), 'middle'),
Example #2
0
         "example, if a user presses the Right key, heuristics determine "
         "whether there is an element he might be trying to reach towards the "
         "right and which element he probably wants."),

        ('links-included-in-focus-chain',
         SettingValue(typ.Bool(), 'true'),
         "Whether hyperlinks should be included in the keyboard focus chain."),
    )),

    ('tabs', sect.KeyValue(
        ('background-tabs',
         SettingValue(typ.Bool(), 'false'),
         "Whether to open new tabs (middleclick/ctrl+click) in background."),

        ('select-on-remove',
         SettingValue(typ.SelectOnRemove(), 'right'),
         "Which tab to select when the focused tab is removed."),

        ('new-tab-position',
         SettingValue(typ.NewTabPosition(), 'right'),
         "How new tabs are positioned."),

        ('new-tab-position-explicit',
         SettingValue(typ.NewTabPosition(), 'last'),
         "How new tabs opened explicitely are positioned."),

        ('last-close',
         SettingValue(typ.LastClose(), 'ignore'),
         "Behaviour when the last tab is closed."),

        ('auto-hide',