Work with inputNode element directly
Instead of using $scope.command, we work with the inputNode element directly to have control over the caret position. This let us have nick completition in the same way as WeeChat. Fix #74
This commit is contained in:
parent
f141095312
commit
5f25a96b51
2 changed files with 13 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
<form class="form form-horizontal" ng-submit="sendMessage()">
|
||||
<div class="input-group">
|
||||
<input id="sendMessage" type="text" class="form-control monospace" autocomplete="off" ng-model="command">
|
||||
<input id="sendMessage" type="text" class="form-control monospace" autocomplete="off" >
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-primary">Send</button>
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue