Skip to content
Snippets Groups Projects
Commit 006e5c4c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

exit fullscreen with escape

parent 7eda9b59
Branches
Tags
No related merge requests found
...@@ -465,6 +465,11 @@ int FlGui::testGlobalShortcuts(int event) ...@@ -465,6 +465,11 @@ int FlGui::testGlobalShortcuts(int event)
Fl::test_shortcut(FL_SHIFT + FL_Escape) || Fl::test_shortcut(FL_SHIFT + FL_Escape) ||
Fl::test_shortcut(FL_CTRL + FL_Escape) || Fl::test_shortcut(FL_CTRL + FL_Escape) ||
Fl::test_shortcut(FL_ALT + FL_Escape)) { Fl::test_shortcut(FL_ALT + FL_Escape)) {
if(fullscreen->shown()){
window_cb(0, (void*)"fullscreen");
status = 1;
}
else{
bool lasso = false; bool lasso = false;
for(unsigned int i = 0; i < graph.size(); i++) for(unsigned int i = 0; i < graph.size(); i++)
for(unsigned int j = 0; j < graph[i]->gl.size(); j++) for(unsigned int j = 0; j < graph[i]->gl.size(); j++)
...@@ -480,6 +485,7 @@ int FlGui::testGlobalShortcuts(int event) ...@@ -480,6 +485,7 @@ int FlGui::testGlobalShortcuts(int event)
status = 1; status = 1;
} }
} }
}
else if(Fl::test_shortcut(FL_SHIFT + 'a')) { else if(Fl::test_shortcut(FL_SHIFT + 'a')) {
window_cb(0, (void*)"front"); window_cb(0, (void*)"front");
status = 1; status = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment