Hey I am using build 0.4.0-build182 and I’ve seen ...
# compose-desktop
s
Hey I am using build 0.4.0-build182 and I’ve seen an issue that key event for Key.TAB is not working in this version. Is the Key.TAB working in the new build 0.5.0-build262?
a
Hi! What exactly is not working? Could you share your code? In build262 tab navigation has been developed, but I’m not sure you are asking about it
s
I got this code to set a shortcut on Key.Tab, but this is not triggered when clicking Tab on the keyboard.
Copy code
LocalAppWindow.current.keyboard.setShortcut(Key.Tab){
    println("tab pressed")
    model.focusNext()
}
and in the following code is triggered by pressing CTRL and Z
Copy code
val key: Key = if(System.getProperty("os.name") == "Mac OS X") Key.MetaLeft else Key.CtrlLeft
LocalAppWindow.current.keyboard.setShortcut(KeysSet(setOf(key, Key.Z))){
    model.getCurrentFocusedAttribute()?.undo()
}