diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index b496bc74..df20d768 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -201,7 +201,7 @@ actions.Actions({ this.images = images.Images(d.images) this.data = data.Data(d.data) }], - clear: ['File|Interface/Clear viewer', + clear: ['File/Clear', {journal: true}, function(){ //delete this.data diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index 02f84109..690bcbf3 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -517,7 +517,9 @@ var URLHistoryUIActions = actions.Actions({ })) // history is empty... - if(list.length == 0){ + // NOTE: the length here is 1 because we need to account + // for the separator... + if(list.length == 1){ list.push([ 'No history...', { diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index ee4ab257..a09f82c2 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -234,8 +234,8 @@ module.GLOBAL_KEYBOARD2 = { // theme... - ctrl_R: 'toggleTheme!', - ctrl_shift_R: 'toggleTheme!: "prev"', + ctrl_B: 'toggleTheme!', + ctrl_shift_B: 'toggleTheme!: "prev"', 'ctrl+-': 'darkerTheme!', 'ctrl++': 'lighterTheme!', diff --git a/ui (gen4)/lib/keyboard.js b/ui (gen4)/lib/keyboard.js index cfcfd721..117a0e76 100755 --- a/ui (gen4)/lib/keyboard.js +++ b/ui (gen4)/lib/keyboard.js @@ -840,7 +840,7 @@ function makeKeyboardHandler(keyboard, unhandled, actions){ && evt.preventDefault() // call the handler... - res = actions[h.action].apply(actions, h.args) + res = actions[h.action].apply(actions, h.arguments) if(h.stop_propagation){ res = false