Comments (3)
I don't know about 1 because I haven't been using the scroll bar, but on 2, I have noticed it and have some example code.
I am building a cpu emulator in javascript and noticed that I lose focus every time I get to the end of the lines of the terminal. However its not a focus issue, it seems that the onkeydown cannot find the element that called it. I just started looking at it but thought I would post some code for it. FYI chrome works fine though.
You can see whats happening here
http://drakesmith.net/focus_test.html
Just type something and pres enter, keep typing and when it needs to scroll it will stop responding to keypresses. Only in IE10 though
from term.js.
Ok, I fixed my issue, sort of. I am not very good at javascript yet but I have a hack. At the end of the refresh function I put this down.
if (this.focus) self.focus();
I think what happens is that IE10 loses focus when refresh removes/adds lines in the dom even though its all still in the parent container. Checking if we had focus and then refreshing the focus fixes it.
from term.js.
Proposed a solution: string 1416, instead of
if (parent) parent.appendChild(this.element);
should be
if (parent) {
parent.appendChild(this.element);
this.element.focus();
}
from term.js.
Related Issues (20)
- a bug about double-width CJK character display HOT 2
- IE10 handling of Key Event
- How can I run the shell on specific user HOT 1
- Double character input for everything in vim. HOT 4
- term.js in bower points to an old fork of the repo HOT 2
- share a term.js ? HOT 1
- support true color HOT 3
- i got a error
- Selecting a lot of text (where scroll is needed)
- Replace native emoji with <img> tags HOT 1
- After vim execution, terminal rows fixed to 80 whatever I set HOT 1
- About pause & resume method
- Work together to make term.js greater HOT 29
- Target div HOT 1
- Calling Terminal.refresh with no args should refresh terminal
- How to su root?
- Please delete this one
- Issue with resize when terminal width increased from small size with lengthy command. HOT 1
- When I use wss to access in IE and firefox, the connection fails
- Add clickable links support 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 term.js.