D
DL
Hi,
Say, I'm thinking of providing efficiency in using Style for some text
for my users with short cut. Where I'm at now,
function doRichText(aName,aArg) {
getIFrameDocument('textbox1').execCommand(aName,false,aArg);
// getIFrameDocument function here
.....
trigger, i.e., onclick="doRichText('bold')"
Now, what I'd like to move a step further up, is, how to support, say,
Alt + B or Ctrl +B, to allow a user to start typing in Bold and then
Alt + B or Ctrl + B again to shut it off (exit)?
It looks like it has something to do with keypress and keycode
something, care to elaborate?
Many thanks.
Say, I'm thinking of providing efficiency in using Style for some text
for my users with short cut. Where I'm at now,
function doRichText(aName,aArg) {
getIFrameDocument('textbox1').execCommand(aName,false,aArg);
// getIFrameDocument function here
.....
trigger, i.e., onclick="doRichText('bold')"
Now, what I'd like to move a step further up, is, how to support, say,
Alt + B or Ctrl +B, to allow a user to start typing in Bold and then
Alt + B or Ctrl + B again to shut it off (exit)?
It looks like it has something to do with keypress and keycode
something, care to elaborate?
Many thanks.