Add support for home/end in editor
This commit is contained in:
parent
10d8c4bfce
commit
ed02447161
@ -122,6 +122,14 @@ class Editor
|
||||
$this->currentRow = min(count($this->list), $this->currentRow + ($h - 3));
|
||||
$this->redrawEditor();
|
||||
break;
|
||||
case 'k{HOME}':
|
||||
$this->currentRow = 0;
|
||||
$this->redrawEditor();
|
||||
break;
|
||||
case 'k{END}':
|
||||
$this->currentRow = count($this->list);
|
||||
$this->redrawEditor();
|
||||
break;
|
||||
|
||||
case 'E':
|
||||
$this->doEditKey();
|
||||
@ -552,10 +560,10 @@ class Editor
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
EOT."\n/ Built on: ".APP_BUILDDATE;
|
||||
EOT."\n/ Version: ".APP_VERSION."\n/ Built at: ".APP_BUILDDATE;
|
||||
|
||||
$width = 60;
|
||||
$height = 21;
|
||||
$height = 22;
|
||||
$left = round(($w / 2) - ($width / 2));
|
||||
$top = round(($h / 2) - ($height / 2));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user