Rev 2265 | Rev 2302 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2265 | Rev 2297 | ||
---|---|---|---|
Line 1119... | Line 1119... | ||
1119 | if (ALT && keypressed (SDLK_F4)) { // alt + f4 on windows & linux |
1119 | if (ALT && keypressed (SDLK_F4)) { // alt + f4 on windows & linux |
1120 | quit = IMMEDIATE; |
1120 | quit = IMMEDIATE; |
1121 | return 1; |
1121 | return 1; |
1122 | }
|
1122 | }
|
1123 | #endif
|
1123 | #endif
|
1124 | - | ||
1125 | 1124 | ||
1126 | // handle widgets
|
1125 | // handle widgets
|
1127 | //
|
1126 | //
|
1128 | 1127 | ||
1129 | // basic_editor::hide_cursor = mouse_slider0.active;
|
1128 | // basic_editor::hide_cursor = mouse_slider0.active;
|
Line 1212... | Line 1211... | ||
1212 | cons << console::red << "Press ESC again to quit" << eol; |
1211 | cons << console::red << "Press ESC again to quit" << eol; |
1213 | esct = ui_clk(); |
1212 | esct = ui_clk(); |
1214 | } else { |
1213 | } else { |
1215 | double dt = ui_clk() - esct; |
1214 | double dt = ui_clk() - esct; |
1216 | if (dt > 1.0) { // 1 sec timeout |
1215 | if (dt > 1.0) { // 1 sec timeout |
1217 | esct = -1; |
1216 | esct = -1; // cancel |
1218 | goto esc; |
1217 | goto esc; |
1219 | } else if (quit != TRY) try_quit (); |
1218 | } else if (quit != SOON) try_quit (); |
1220 | }
|
1219 | }
|
1221 | }
|
1220 | }
|
1222 | }
|
1221 | }
|
1223 | 1222 | ||
1224 | return 1; |
1223 | return 1; |