| Message |
Hmmm. Miniwindows are currently output-only, as you know. There are also hooks for mouse activity, like clicks and mouse-overs.
Handling keyboard input is going to be a big change. Remember the issue that keeps cropping up with whether Ctrl+C copies from the command window or the output window? This would be the same, but worse.
To implement some sort of keyboard input the very least that would be needed is to have the "focus" be moveable from the command window to the miniwindow (and which miniwindow, if you have more than one with input boxes?). Then keystrokes would need to be passed to the miniwindow rather than the command window, and attention would be needed to handle accelerator keys as well (eg. if you redirect "K" to do something different, would that apply if the miniwindow had the focus?).
You would also need to have some sort of special key that moves the focus around (or the mouse maybe), like Ctrl+Tab does in Windows. You would need to handle copy and paste, highlighting selections, scrolling, etc.
Sounds like a big job to me.
The closest I can suggest, if you want to have a way of easily editing something like a mob description, is to use the Lua editbox (or similar) function (http://www.gammon.com.au/scripts/doc.php?lua=utils.editbox). Now admittedly this would be modal, and you couldn't do anything else until you amended the description and clicked OK or Cancel, but that would be a workaround.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|