* available since Chrome 36
(get-keyboard-config)
Gets the virtual keyboard configuration.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [config] where:
|config| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the virtual keyboard configuration. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [config] where: |config| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(hide-keyboard)
Hides the virtual keyboard.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Hides the virtual keyboard. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(insert-text text)
Inserts text into the currently focused text field.
|text| - The text that will be inserted.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Inserts text into the currently focused text field. |text| - The text that will be inserted. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(keyboard-loaded)
Inform the system that the keyboard has loaded.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Inform the system that the keyboard has loaded. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(lock-keyboard lock)
Sets the lock state of the virtual keyboard. A locked keyboard remains visible even after a text area loses input focus.
|lock| - ?
Sets the lock state of the virtual keyboard. A locked keyboard remains visible even after a text area loses input focus. |lock| - ?
(open-settings)
Opens chrome://os-settings/osLanguages page.
Opens chrome://os-settings/osLanguages page.
(open-suggestion-settings)
Opens chrome://os-settings/osLanguages/smartInputs page.
Opens chrome://os-settings/osLanguages/smartInputs page.
(send-key-event key-event)
Sends a fabricated key event to the focused input field.
|key-event| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Sends a fabricated key event to the focused input field. |key-event| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-area-to-remain-on-screen bounds)
Sets the area of the keyboard window that should not move off screen. Any area outside of this can be moved off the user's screen.
|bounds| - The bounds of the area inside the keyboard window, relative to the window origin, that should not be moved off screen. Any area outside of this bounds can be moved off screen.
Sets the area of the keyboard window that should not move off screen. Any area outside of this can be moved off the user's screen. |bounds| - The bounds of the area inside the keyboard window, relative to the window origin, that should not be moved off screen. Any area outside of this bounds can be moved off screen.
(set-container-behavior options)
Sets the virtual keyboard container behavior
|options| - Optional parameters for new container behavior.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [success] where:
|success| - Whether the container mode changed successfully
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Sets the virtual keyboard container behavior |options| - Optional parameters for new container behavior. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [success] where: |success| - Whether the container mode changed successfully In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(set-draggable-area bounds)
Sets the virtual keyboard draggable area bounds.
|bounds| - The value of draggable rect area of floating keyboard.
Sets the virtual keyboard draggable area bounds. |bounds| - The value of draggable rect area of floating keyboard.
(set-hit-test-bounds bounds-list)
Sets the areas on the keyboard window where events are handled. Any event outside of these areas are passed on to the window behind it.
|bounds-list| - List of rectangles representing regions where events targeting the keyboard should be handled.
Sets the areas on the keyboard window where events are handled. Any event outside of these areas are passed on to the window behind it. |bounds-list| - List of rectangles representing regions where events targeting the keyboard should be handled.
(set-hotrod-keyboard enable)
Sets the state of the hotrod virtual keyboard. This API should only be used by hotrod.
|enable| - ?
Sets the state of the hotrod virtual keyboard. This API should only be used by hotrod. |enable| - ?
(set-keyboard-state state)
Requests the virtual keyboard to change state.
|state| - The value of the virtual keyboard state to change to.
Requests the virtual keyboard to change state. |state| - The value of the virtual keyboard state to change to.
(set-occluded-bounds bounds-list)
Sets the areas on the screen that are blocked by the virtual keyboard.
|bounds-list| - List of rectangles representing regions occluded by the keyboard.
Sets the areas on the screen that are blocked by the virtual keyboard. |bounds-list| - List of rectangles representing regions occluded by the keyboard.
(set-window-bounds-in-screen bounds)
Sets the bounds of the keyboard window in screen coordinates.
|bounds| - A rectangle defining the new bounds of the window in screen coordinates.
Sets the bounds of the keyboard window in screen coordinates. |bounds| - A rectangle defining the new bounds of the window in screen coordinates.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.virtual-keyboard-private namespace.
Taps all valid non-deprecated events in chromex.app.virtual-keyboard-private namespace.
(tap-on-bounds-changed-events channel & args)
This event is sent when virtual keyboard bounds changed and overscroll/resize is enabled.
Events will be put on the |channel| with signature [::on-bounds-changed [bounds]] where:
|bounds| - The virtual keyboard bounds
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
This event is sent when virtual keyboard bounds changed and overscroll/resize is enabled. Events will be put on the |channel| with signature [::on-bounds-changed [bounds]] where: |bounds| - The virtual keyboard bounds Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-keyboard-closed-events channel & args)
Fired when the virtual keyboard window has been closed. For example, this can happen when turning off on-screen keyboard or exiting tablet mode.
Events will be put on the |channel| with signature [::on-keyboard-closed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the virtual keyboard window has been closed. For example, this can happen when turning off on-screen keyboard or exiting tablet mode. Events will be put on the |channel| with signature [::on-keyboard-closed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-keyboard-config-changed-events channel & args)
Fired when a configuration for virtual keyboard IME has changed, e.g. auto complete disabled.
Events will be put on the |channel| with signature [::on-keyboard-config-changed [config]] where:
|config| - The virtual keyboard config
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when a configuration for virtual keyboard IME has changed, e.g. auto complete disabled. Events will be put on the |channel| with signature [::on-keyboard-config-changed [config]] where: |config| - The virtual keyboard config Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close