Skip to content

Commit

Permalink
keyboard icon on lbar opens Prefs on Keyboard tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn committed Mar 13, 2015
1 parent ca19b36 commit f5554c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/ide.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.exports = ->
return

# language bar
$('.lbar-prefs').click prefs
$('.lbar-prefs').click -> prefs 'keyboard'; return
$tip = $ '.lbar-tip'; $tipDesc = $ '.lbar-tip-desc'; $tipText = $ '.lbar-tip-text'; $tipTriangle = $ '.lbar-tip-triangle'
ttid = null # tooltip timeout id
$ '.lbar'
Expand Down
3 changes: 2 additions & 1 deletion client/prefs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ok = ->
prefs.prefixKey pk; prefs.windowTitle wt
$d.dialog 'close'; false

D.prefs = prefs = module.exports = ->
D.prefs = prefs = module.exports = (tabName) ->
if !$d # the dialogue, lazily initialized
$d = $ """
<div id="prefs">
Expand Down Expand Up @@ -53,6 +53,7 @@ D.prefs = prefs = module.exports = ->
$i[0].selectionStart = $i[0].selectionEnd = p + u.length; return

$d.dialog('option', 'position', at: 'center').dialog 'open'
if tabName then $d.tabs active: $("#prefs-tabs-nav a[href='#prefs-tab-#{tabName}']").parent().index()

# load current values
$('#prefs-prefixKey').val prefs.prefixKey()
Expand Down

0 comments on commit f5554c3

Please sign in to comment.