summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorKenjiro NAKAYAMA <nakayamakenjiro@gmail.com>2013-12-25 16:33:16 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2013-12-25 16:33:16 +0100
commitfec0e8283f7ce156c6fa1aa86a36a84ada54965b (patch)
treed7ab6d18f78d49d3554718a0a61ea53b3ae8e6fc /lisp/net
parentc93525876d67837669c5e8f89b6606b4cfb55ec4 (diff)
downloademacs-fec0e8283f7ce156c6fa1aa86a36a84ada54965b.tar.gz
eww textarea fixups
* net/eww.el (eww-form-textarea): Use a different face for textareas than text input since they have different keymaps. Fixes: debbugs:16142
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/eww.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 02c93a0c677..25309d16951 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -115,6 +115,14 @@ See also `eww-form-checkbox-selected-symbol'."
:version "24.4"
:group 'eww)
+(defface eww-form-textarea
+ '((t (:background "#C0C0C0"
+ :foreground "black"
+ :box (:line-width 1))))
+ "Face for eww textarea inputs."
+ :version "24.4"
+ :group 'eww)
+
(defvar eww-current-url nil)
(defvar eww-current-dom nil)
(defvar eww-current-source nil)
@@ -776,7 +784,7 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
(when (> pad 0)
(insert (make-string pad ? ))))
(add-face-text-property (line-beginning-position)
- (point) 'eww-form-text)
+ (point) 'eww-form-textarea)
(put-text-property (line-beginning-position) (point)
'local-map eww-textarea-map)
(forward-line 1))