Comments (4)
+1
I'm encountering this issue as well. I don't know anything about the Brackets API, but I'm happy to submit a pull request if anyone can guide me in the right direction for the fix
from brackets-surround.
Just add
$('#surround_input').focus();
as a last line to the surround-function:
function surround() {
var _t = _getSelectedText(),
_output = "";
Dialogs.showModalDialogUsingTemplate(surroundHtml);
$('#surround_input').keyup(function (e) {
if (e.which === 13) {
e.preventDefault();
var _c = $('#surround_input').val();
if (_c === null) {
return;
}
if (cases[_c] !== undefined) {
_output = _c + _t + cases[_c];
} else {
if (_isHTML(_c)) {
if (_closeHTML(_c) === false) {
Dialogs.cancelModalDialogIfOpen('surround_input');
return;
}
_output = _c + _t + _closeHTML(_c);
} else {
_output = _c + _t + _c;
}
}
$('.surround_input').fadeOut(300);
Dialogs.cancelModalDialogIfOpen('surround_input');
_replaceActiveSelection(_output);
}
});
$('#surround_input').focus();
}
from brackets-surround.
Thanks jarmediagmbh. Just wanted to point out that this pull request will fix the issue if merged.
from brackets-surround.
This has been resolved, thanks for the feedback. If you had it previously installed through the extensions registry, you can now update and it should work as intended.
from brackets-surround.
Related Issues (15)
- Installation fails on Mac HOT 3
- Link in Brackets installation says it's wrong.... HOT 1
- Surround broken by something in Sprint 27 build HOT 4
- Upload extension to Brackets extension registry HOT 4
- Crash upon accidental punctuation input HOT 4
- Keyboard shortcut? HOT 5
- Doesn't work in Brakets 41 - 0.41.0-13418 (release e642284b3) HOT 4
- Doesn't seem to work HOT 3
- how does it work? HOT 1
- Auto complete tags?
- Not work with multiple lines HOT 3
- Selecting Multiple sections
- how does this work? HOT 2
- Hot key not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brackets-surround.