Skip to content

Commit

Permalink
fix Firefox outlines, autofocus text field
Browse files Browse the repository at this point in the history
  • Loading branch information
jancborchardt committed Jul 8, 2012
1 parent 5bcefef commit 1f8c3ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion litewrite.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ html, body {
}
#aside:hover, #aside:focus, #aside.visible { opacity:1; }
#aside a, #add, #color-toggle {
display:block; padding:.5em; cursor:pointer;
display:block; padding:.5em; cursor:pointer; outline:none;
color:#444; text-shadow:0 1px 0 #fff; text-decoration:none;
white-space:nowrap; overflow:hidden; text-overflow:hidden;
}
Expand Down
2 changes: 2 additions & 0 deletions litewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var id = localStorage.last_id = localStorage.last_id || 0
function show(id) {
$('editor').innerHTML = localStorage.getItem(id + '_html') || ''
localStorage.setItem('current-document', id)
$('editor').focus()
}

function select() {
Expand All @@ -22,6 +23,7 @@ function create() {
location.hash = '#'+ id
select()
updateList()
$('editor').focus()
}

function updateList() {
Expand Down

0 comments on commit 1f8c3ee

Please sign in to comment.