Remove navigation mode/more rows element

This commit is contained in:
Daniel Imms
2018-01-27 14:48:45 -08:00
parent 5c061195c0
commit 963db4d2fd
7 changed files with 0 additions and 58 deletions
-3
View File
@@ -71,9 +71,6 @@
<p>
<label><input type="checkbox" id="option-screen-reader-mode"> screenReaderMode</label>
</p>
<p>
<button id="screen-reader-navigation-mode" title="Only works when screenReaderMode is true">Enter navigation mode</button>
</p>
</div>
<p><strong>Attention:</strong> The demo is a barebones implementation and is designed for xterm.js evaluation purposes only. Exposing the demo to the public as is would introduce security risks for the host.</p>
<script src="dist/bundle.js" defer ></script>
-8
View File
@@ -33,7 +33,6 @@ var terminalContainer = document.getElementById('terminal-container'),
bellStyle: document.querySelector('#option-bell-style'),
screenReaderMode: document.querySelector('#option-screen-reader-mode')
},
navigationModeElement = document.querySelector('#screen-reader-navigation-mode'),
colsElement = document.getElementById('cols'),
rowsElement = document.getElementById('rows');
@@ -87,13 +86,6 @@ optionElements.tabstopwidth.addEventListener('change', function () {
optionElements.screenReaderMode.addEventListener('change', function () {
term.setOption('screenReaderMode', optionElements.screenReaderMode.checked);
});
navigationModeElement.addEventListener('click', function () {
if (term.getOption('screenReaderMode')) {
term.enterNavigationMode();
} else {
console.warn('screenReaderMode must be true to enter navigation mode');
}
});
createTerminal();