Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Command + F , how to handle it

$
0
0

@dimitre wrote:

Until 0.9.8 this piece of code would work

	if (key == 'f') {
		if (ofGetKeyPressed(OF_KEY_COMMAND)) {
			ofToggleFullscreen();
		}
	}

but now in 0.10.0 it doesn’t fire event.
I’ve tried to use

void keyPressed(ofKeyEventArgs & key);

and check for modifier but I think I’m just doing it wrong.

Any ideas of how to handle COMMAND + any key?
Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles