diff options
| author | Joakim Verona | 2011-11-09 13:46:24 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-09 13:46:24 +0100 |
| commit | 32db4845d5c433fd15c6665cbed169e5d8b94f05 (patch) | |
| tree | 2e23f523c8a33224c4fa929aa8306d8a9d640bb4 /lisp | |
| parent | 8520d9c4e50520db79410ec6ef0052df129231dc (diff) | |
| download | emacs-32db4845d5c433fd15c6665cbed169e5d8b94f05.tar.gz emacs-32db4845d5c433fd15c6665cbed169e5d8b94f05.zip | |
nav + text edit
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/xwidget.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 3f20914f88c..8ed0c72f296 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el | |||
| @@ -166,14 +166,8 @@ defaults to the string looking like a url around the cursor position." | |||
| 166 | ) | 166 | ) |
| 167 | 167 | ||
| 168 | ((eq xwidget-event-type 'navigation-policy-decision-requested) | 168 | ((eq xwidget-event-type 'navigation-policy-decision-requested) |
| 169 | (let ((elmid (progn (string-match ".*#\\(.*\\)" strarg)(match-string 1 strarg)))) | 169 | (if (string-match ".*#\\(.*\\)" strarg) |
| 170 | (message "navigation-policy-decision-requested: '%s' %s" strarg elmid ) | 170 | (xwidget-webkit-show-id-or-named-element xwidget (match-string 1 strarg)))))))) |
| 171 | |||
| 172 | (if elmid (xwidget-webkit-show-id-or-named-element xwidget elmid)) | ||
| 173 | ) | ||
| 174 | |||
| 175 | ) | ||
| 176 | )))) | ||
| 177 | 171 | ||
| 178 | (define-derived-mode xwidget-webkit-mode | 172 | (define-derived-mode xwidget-webkit-mode |
| 179 | special-mode "xwidget-webkit" "xwidget webkit view mode" | 173 | special-mode "xwidget-webkit" "xwidget webkit view mode" |
| @@ -254,7 +248,7 @@ Argument STR string." | |||
| 254 | (list xww | 248 | (list xww |
| 255 | (cond ( (equal "text" field-type) (read-string "text:" field-value)) | 249 | (cond ( (equal "text" field-type) (read-string "text:" field-value)) |
| 256 | ( (equal "password" field-type) (read-passwd "password:" nil field-value)) | 250 | ( (equal "password" field-type) (read-passwd "password:" nil field-value)) |
| 257 | ( (equal "textarea" field-type) (read-textarea "textarea:" field-value)) | 251 | ( (equal "textarea" field-type) (read-string "textarea:" field-value)) |
| 258 | )))) | 252 | )))) |
| 259 | (xwidget-webkit-execute-script xw (format "findactiveelement(document).value='%s'" str))) | 253 | (xwidget-webkit-execute-script xw (format "findactiveelement(document).value='%s'" str))) |
| 260 | 254 | ||