if (needResize) {
needResize = 0;
newtResizeScreen(1);
+
+ /* The application may want to handle the resize */
+ for (i = 0; i < form->numHotKeys; i++) {
+ if (form->hotKeys[i] == NEWT_KEY_RESIZE) {
+ es->reason = NEWT_EXIT_HOTKEY;
+ es->u.key = NEWT_KEY_RESIZE;
+ done = 1;
+ break;
+ }
+ }
+ if (done)
+ break;
}
i = select(max + 1, &readSet, &writeSet, &exceptSet,
setitemstring_decref(d, "KEY_F11", PyInt_FromLong(NEWT_KEY_F11));
setitemstring_decref(d, "KEY_F12", PyInt_FromLong(NEWT_KEY_F12));
setitemstring_decref(d, "KEY_ESC", PyInt_FromLong(NEWT_KEY_ESCAPE));
+ setitemstring_decref(d, "KEY_RESIZE", PyInt_FromLong(NEWT_KEY_RESIZE));
setitemstring_decref(d, "FLAG_DISABLED", PyInt_FromLong(NEWT_FLAG_DISABLED));
setitemstring_decref(d, "FLAGS_SET", PyInt_FromLong(NEWT_FLAGS_SET));
"F12" : _snack.KEY_F12, "ESC" : _snack.KEY_ESC,
"ENTER": _snack.KEY_ENTER, "SUSPEND" : _snack.KEY_SUSPEND,
"BACKSPACE": _snack.KEY_BACKSPACE, "DELETE": _snack.KEY_DELETE,
- "INSERT": _snack.KEY_INSERT,
+ "INSERT": _snack.KEY_INSERT, "RESIZE": _snack.KEY_RESIZE,
" " : ord(" ") }
for n in list(hotkeys.keys()):