### Triage
+- [ ] There is a "window:close" and a "Window:close" and they are
+ different. Fix this!
- [X] unknown keysequence should be reported so e.g. if keyboard
is is Greek mode, then I will be told that Cx-b doesn't work
- [X] menubar doesn't redraw background when resized wider.
- [X] split range management out of autospell so it can be used by other
modules.
- [ ] make it easy for a make-search command to search backwards
-- [ ] Make a start on CUA mode with mouse/menu/selection support.
+- [X] Make a start on CUA mode with mouse/menu/selection support.
Also Function keys: help, close, refresh
### Large
return ret < 0 ? ret : 1;
}
+DEF_CMD(basic_close)
+{
+ call("Window:close", ci->focus);
+ return 1;
+}
+
+DEF_CMD(basic_refresh)
+{
+ call("window:refresh", ci->focus);
+ return 1;
+}
+
static struct map *basic_map;
DEF_LOOKUP_CMD(mode_basic, basic_map);
m = key_alloc();
+ /* Some Function keys that CUA defines */
key_add(m, "K:F1", &help_cmd.c);
+ key_add(m, "K:F4", &basic_close);
+ key_add(m, "K:F5", &basic_refresh);
key_add_range(m, "K- ", "K-~", &basic_insert);
key_add_range(m, "K-\200", "K-\377\377\377\377", &basic_insert);