Im currently using method
getKeyText() and getKeyCode() like this

How do you listen for * - and + with keylisteners.
/ is the only one that works atm the rest won't get recognized for some reason

if(event.getKeyText(event.getKeyCode())).equals("/")){
//do something
}

that method works, but when I try using a + a - or a * nothing happens, maybe whenever I type * - + it isnt getting recognized or something? , like when I try * it places a number in the text field im using instead of showing a multi sign

If anyone can write how to listen for - + or * it'd be helpful

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.