Keys

API ReferenceRendererItemKeys

Rectangle {
    width: 100
    height: 100
    color: 'green'
    keys.focus: true
    keys.onPressed: function(){
        this.color = 'red';
    }
    keys.onReleased: function(){
        this.color = 'green';
    }
}

Source


Keys.focusWindowOnPointerPress

Static property of
Keys
Type
Boolean
Default
true

Source


Keys.focusedItem

Static property of
Keys
Type
Item

Source


**Class** Keys.Event

Extends
Device.KeyboardEvent

Source


onPress()

Parameters
  • event — Item.Keys.Event
Type
Signal

onHold()

Parameters
  • event — Item.Keys.Event
Type
Signal

onRelease()

Parameters
  • event — Item.Keys.Event
Type
Signal

onInput()

Parameters
  • event — Item.Keys.Event
Type
Signal

Source


focus

Type
Boolean
Default
false

onFocusChange()

Parameters
  • oldValue — Boolean
Type
Signal

Source


Keys.event

Static property of
Keys
Type
Item.Keys.Event

Source

results matching ""

    No results matching ""