mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Make buttons blue on keyboard navigation
- Make buttons blue when they have activeFocus to make it more clear which button has focus when using keyboard navation. - By default most components only respond to 'space' on keyboard for pressing buttons and toggling checkboxes. Map Enter/Return (normal and keypad) as well.
This commit is contained in:
parent
d91f8d95b1
commit
c1234d2ea2
8 changed files with 99 additions and 79 deletions
14
qmlcomponents/ImCheckBox.qml
Normal file
14
qmlcomponents/ImCheckBox.qml
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Copyright (C) 2022 Raspberry Pi Ltd
|
||||
*/
|
||||
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls.Material 2.2
|
||||
|
||||
CheckBox {
|
||||
Keys.onEnterPressed: toggle()
|
||||
Keys.onReturnPressed: toggle()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue