mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-01-23 04:14:35 +08:00
update
This commit is contained in:
parent
46148b3c5c
commit
bc0c36772f
@ -189,24 +189,25 @@ FluIconButton {
|
|||||||
forceActiveFocus()
|
forceActiveFocus()
|
||||||
}
|
}
|
||||||
Keys.enabled: true
|
Keys.enabled: true
|
||||||
Keys.onPressed: {
|
Keys.onPressed:
|
||||||
var keyNames = []
|
(event)=>{
|
||||||
if (event.modifiers & Qt.AltModifier) {
|
var keyNames = []
|
||||||
keyNames.push("Alt")
|
if (event.modifiers & Qt.AltModifier) {
|
||||||
|
keyNames.push("Alt")
|
||||||
|
}
|
||||||
|
if (event.modifiers & Qt.ControlModifier) {
|
||||||
|
keyNames.push("Ctrl")
|
||||||
|
}
|
||||||
|
if (event.modifiers & Qt.ShiftModifier) {
|
||||||
|
keyNames.push("Shift")
|
||||||
|
}
|
||||||
|
var keyName = d.keyToString(event.key,false)
|
||||||
|
if(keyName!==""){
|
||||||
|
keyNames.push(keyName)
|
||||||
|
content_dialog.keysModel = keyNames
|
||||||
|
}
|
||||||
|
event.accepted = true
|
||||||
}
|
}
|
||||||
if (event.modifiers & Qt.ControlModifier) {
|
|
||||||
keyNames.push("Ctrl")
|
|
||||||
}
|
|
||||||
if (event.modifiers & Qt.ShiftModifier) {
|
|
||||||
keyNames.push("Shift")
|
|
||||||
}
|
|
||||||
var keyName = d.keyToString(event.key,false)
|
|
||||||
if(keyName!==""){
|
|
||||||
keyNames.push(keyName)
|
|
||||||
content_dialog.keysModel = keyNames
|
|
||||||
}
|
|
||||||
event.accepted = true
|
|
||||||
}
|
|
||||||
Keys.onTabPressed:
|
Keys.onTabPressed:
|
||||||
(event)=>{
|
(event)=>{
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
|
@ -189,24 +189,25 @@ FluIconButton {
|
|||||||
forceActiveFocus()
|
forceActiveFocus()
|
||||||
}
|
}
|
||||||
Keys.enabled: true
|
Keys.enabled: true
|
||||||
Keys.onPressed: {
|
Keys.onPressed:
|
||||||
var keyNames = []
|
(event)=>{
|
||||||
if (event.modifiers & Qt.AltModifier) {
|
var keyNames = []
|
||||||
keyNames.push("Alt")
|
if (event.modifiers & Qt.AltModifier) {
|
||||||
|
keyNames.push("Alt")
|
||||||
|
}
|
||||||
|
if (event.modifiers & Qt.ControlModifier) {
|
||||||
|
keyNames.push("Ctrl")
|
||||||
|
}
|
||||||
|
if (event.modifiers & Qt.ShiftModifier) {
|
||||||
|
keyNames.push("Shift")
|
||||||
|
}
|
||||||
|
var keyName = d.keyToString(event.key,false)
|
||||||
|
if(keyName!==""){
|
||||||
|
keyNames.push(keyName)
|
||||||
|
content_dialog.keysModel = keyNames
|
||||||
|
}
|
||||||
|
event.accepted = true
|
||||||
}
|
}
|
||||||
if (event.modifiers & Qt.ControlModifier) {
|
|
||||||
keyNames.push("Ctrl")
|
|
||||||
}
|
|
||||||
if (event.modifiers & Qt.ShiftModifier) {
|
|
||||||
keyNames.push("Shift")
|
|
||||||
}
|
|
||||||
var keyName = d.keyToString(event.key,false)
|
|
||||||
if(keyName!==""){
|
|
||||||
keyNames.push(keyName)
|
|
||||||
content_dialog.keysModel = keyNames
|
|
||||||
}
|
|
||||||
event.accepted = true
|
|
||||||
}
|
|
||||||
Keys.onTabPressed:
|
Keys.onTabPressed:
|
||||||
(event)=>{
|
(event)=>{
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
|
Loading…
Reference in New Issue
Block a user