If commands where typed into inputbox, there where javaScript errors written
in case a ';' was typed. The decision when the hinting mode is active was
wrong. Hinting is always started explicit so we can check the mode flag to
decide if the key can be handled by the hinting mode.
VbResult res;
const char *text;
- /* delegate call to the submode */
- if (RESULT_COMPLETE == hints_keypress(key)) {
+ /* delegate call to hint mode if this is active */
+ if (vb.mode->flags & FLAG_HINTING
+ && RESULT_COMPLETE == hints_keypress(key)) {
+
return RESULT_COMPLETE;
}
{
JSValueRef arguments[1];
- /* if we are not already in hint mode we expect to get a ; to start
- * hinting */
- if (!(vb.mode->flags & FLAG_HINTING) && key != ';') {
- return RESULT_ERROR;
- }
-
if (key == KEY_CR) {
hints_fire();