Skip to content

Commit c8a5e15

Browse files
committed
1.17.11
Fixed #2308 api.readText is missing
1 parent 970b21d commit c8a5e15

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Surfingkeys",
3-
"version": "1.17.10",
3+
"version": "1.17.11",
44
"description": "Map your keys for web surfing, expand your browser with javascript and keyboard.",
55
"main": "background.js",
66
"directories": {

src/content_scripts/common/api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ function createAPI(clipboard, insert, normal, hints, visual, front, browser) {
468468
dispatchSKEvent('user', ["callUserFunction", `visual:${keys}`]);
469469
}, options);
470470
},
471+
readText: browser.readText,
471472
});
472473
return {
473474
RUNTIME,

src/user_scripts/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ const api = {
161161
unmapAllExcept: (keystrokes, domain) => {
162162
dispatchSKEvent('api', ['unmapAllExcept', keystrokes, domain]);
163163
},
164+
readText: (text, options) => {
165+
dispatchSKEvent('api', ['readText', text, options]);
166+
},
164167
removeSearchAlias: (alias, search_leader_key, only_this_site_key) => {
165168
dispatchSKEvent('api', ['removeSearchAlias', alias, search_leader_key, only_this_site_key]);
166169
},

0 commit comments

Comments
 (0)