File: control

package info (click to toggle)
textarea-caret.js 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 100 kB
  • sloc: javascript: 88; makefile: 5
file content (45 lines) | stat: -rw-r--r-- 1,984 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Source: textarea-caret.js
Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Joseph Nahmias <jello@debian.org>
Build-Depends:
 debhelper-compat (= 13),
 pkg-js-tools,
Standards-Version: 4.6.0
Homepage: https://github.com/component/textarea-caret-position
Vcs-Git: https://salsa.debian.org/jello/textarea-caret.js.git
Vcs-Browser: https://salsa.debian.org/jello/textarea-caret.js
Rules-Requires-Root: no
Testsuite: autopkgtest-pkg-nodejs

Package: libjs-textarea-caret
Architecture: all
Depends: ${misc:Depends}
Recommends: javascript-common
Provides: ${nodejs:Provides}
Multi-Arch: foreign
Description: JS library to get the xy coords of a textarea or input's caret
 Javascript library which finds the top and left coordinates of the caret in
 a <textarea> or <input type="text">, in pixels. Useful for textarea
 autocompletes like GitHub or Twitter, or for single-line autocompletes like
 the name drop-down in Twitter or Facebook's search or the company dropdown
 on Google Finance.
 .
 Features include:
  * supports <textarea>s and <input type="text"> elements
  * pixel precision with any combination of paddings, margins, borders,
    heights vs. line-heights etc.
  * keyboard, mouse support and touch support
  * no dependencies whatsoever
  * browser compatibility: Chrome, Safari, Firefox, Opera, IE9+
  * supports any font family and size, as well as text-transforms
  * not confused by horizontal or vertical scrollbars in the textarea
  * supports hard returns, tabs (except on IE) and consecutive spaces in
    the text
  * correct position on lines longer than the columns in the text area
  * no problem getting the correct position when the input text is scrolled
    (i.e. the first visible character is no longer the first in the text)
  * no "ghost" position in the empty space at the end of a line when wrapping
    long words in a <textarea>
  * RTL (right-to-left) support