@ shabbir :
Another problem :: As you might have noticed, I have added keyboard shortcuts and combos to my Ver.2.0 of G4EF Toolbar. Now, .. everything is fine while when we reply to threads (both quick and advanced modes). But, when we create new threads .. the keyboard combos interfere with typing.
This is because my code is unable to recognize the textboxes in the create new thread page. It recognizes the textboxes in quick reply and advanced modes correctly.
So, could you help me in this regard ??
Here is my code that I use to recognize the source of keypress event :
Code: JavaScript
isInputTarget: function(e) {
var target = e.target || e.srcElement;
if (target && target.nodeName) {
var targetNodeName = target.nodeName.toLowerCase();
if (targetNodeName == "textarea" || targetNodeName == "input" || targetNodeName == "findbar" || targetNodeName == "searchbar" || targetNodeName == "select" || targetNodeName == "textbox" ||
(targetNodeName == "input" && target.type &&
(target.type.toLowerCase() == "text" || target.type.toLowerCase() == "username" ||
target.type.toLowerCase() == "password"))
) {
return true;
}
}
}
I have tried recognizing the problematic text-boxes by id, type, nodeName, tagName, nodeValue, nodeType. But, no luck so far... The textboxes have all these properties same as the background HTML page
Please tell me what to add, so that I can recognize them.