gtkButtonSetFocusOnClick {RGtk2} | R Documentation

## gtkButtonSetFocusOnClick

### Description

Sets whether the button will grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don't want the keyboard focus removed from the main area of the application.

### Usage

    gtkButtonSetFocusOnClick(object, focus.on.click)

### Arguments

``object`` | a `GtkButton`
``focus.on.click`` | whether the button grabs focus when clicked with the mouse

### Details

Since 2.4

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]