How to have the menu mnemonic underline appearing always?
Asked Answered
S

1

8

When a mnemonic character "_" is added to the menu text, we have to press the Alt key to make the mnemonic underline appear. How to let the menu mnemonic underline appear always before we press Alt?

Squilgee answered 12/12, 2013 at 10:33 Comment(0)
G
12

To make the mnemonic underlines visible all the time, just add the following to your css file:

.mnemonic-underline {
    -fx-stroke: -fx-text-base-color;
}
Greaves answered 17/12, 2013 at 1:7 Comment(1)
You actually want -fx-stroke: -fx-text-fill, so it can change color when the menu item is selectedOpinionative

© 2022 - 2024 — McMap. All rights reserved.