From cdb1358e9b7522c45b6b6e1add434514f2c0a283 Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Wed, 18 Jan 2006 16:58:33 +0000 Subject: [PATCH] Feature advance / rewind. --- minimo/chrome/content/bindings/keylets.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/minimo/chrome/content/bindings/keylets.xml b/minimo/chrome/content/bindings/keylets.xml index e6d2c1fa665..1124ce74d33 100644 --- a/minimo/chrome/content/bindings/keylets.xml +++ b/minimo/chrome/content/bindings/keylets.xml @@ -101,11 +101,20 @@ if(tryElement) { if(e.keyCode==tryElement.rule_keyCode) { - e.preventBubble(); - document.getElementById(tryElement.rule_focusTo).focus(); + if(tryElement.rule_focusTo.indexOf("#advance")>-1) { + document.commandDispatcher.advanceFocus(); + } else if (tryElement.rule_focusTo.indexOf("#rewind")>-1) { + + document.commandDispatcher.rewindFocus(); + } else { + if(document.getElementById(tryElement.rule_focusTo)) { + + document.getElementById(tryElement.rule_focusTo).focus(); + } + } } } } @@ -141,5 +150,4 @@ - - + \ No newline at end of file