summaryrefslogtreecommitdiff
path: root/riscos/401login.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-12-26 22:12:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-12-26 22:12:39 +0000
commit93dfe6dfe831c6c95e2bc927d82ea0de54ade3e0 (patch)
tree49a07b3379b8001eec93c59f1376af56665be0b0 /riscos/401login.c
parentd49a18d608bb9cfc779e386d65f942045ee2829c (diff)
downloadnetsurf-93dfe6dfe831c6c95e2bc927d82ea0de54ade3e0.tar.gz
netsurf-93dfe6dfe831c6c95e2bc927d82ea0de54ade3e0.tar.bz2
[project @ 2003-12-26 22:12:39 by jmb]
Move constant global data into a new file. This makes things a bit tidier. Add help: and home: shortcut URLs. svn path=/import/netsurf/; revision=449
Diffstat (limited to 'riscos/401login.c')
-rw-r--r--riscos/401login.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/riscos/401login.c b/riscos/401login.c
index c5693d2e3..2bff170f3 100644
--- a/riscos/401login.c
+++ b/riscos/401login.c
@@ -106,11 +106,16 @@ void ro_gui_401login_open(char *host, char* realm, char *fetchurl)
bool ro_gui_401login_keypress(wimp_key *key) {
- if (key->c == wimp_KEY_RETURN) {
- get_unamepwd();
- ro_gui_dialog_close(dialog_401li);
- browser_window_open_location(bwin, url);
- return true;
+ switch (key->c) {
+ case wimp_KEY_RETURN:
+ get_unamepwd();
+ ro_gui_dialog_close(dialog_401li);
+ browser_window_open_location(bwin, url);
+ return true;
+ case wimp_KEY_ESCAPE:
+ ro_gui_dialog_close(dialog_401li);
+ break;
+ default: break;
}
return false;