(fix) create key flow

This commit is contained in:
Ishaan Jaff
2024-03-29 10:08:35 -07:00
parent fae935cdb2
commit d3e72e1c3b
144 changed files with 53398 additions and 50 deletions
+18
View File
@@ -0,0 +1,18 @@
# Toggle Selection
Simple module exposing function that deselects current browser selection and returns function that restores selection.
```
var deselect = require('toggle-selection');
var reselect = deselect(); // remove all selection
// …
// do something with current selection, text, etc;
// …
reselect(); // restore selection
```
All credits go to [@shvaikalesh](https://github.com/shvaikalesh).
# [Example](https://github.com/sudodoki/toggle-selection/blob/master/example)
![example recording](http://g.recordit.co/YPu6mHvcKe.gif)