Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 19ac6e6

Browse files
committed
merging in master
2 parents 7d206a6 + 0775b7d commit 19ac6e6

File tree

6 files changed

+34
-15
lines changed

6 files changed

+34
-15
lines changed

css/obBase.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,7 +2407,6 @@ div.chatSearchOut .chatSearchIcon {
24072407

24082408
.chatConversationMessageTimestamp {
24092409
font-size: 11px;
2410-
color: #fff;
24112410
opacity: .35;
24122411
font-weight: 500;
24132412
letter-spacing: 0;
@@ -3415,7 +3414,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
34153414
padding: 10px 0;
34163415
width: 230px;
34173416
overflow: hidden;
3418-
transform: translateY(-330px);
3417+
transform: translateY(-110%);
34193418
transition: transform 200ms;
34203419
}
34213420

@@ -4668,7 +4667,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
46684667
#ov1 .positionTop {
46694668
position: absolute;
46704669
top: 0;
4671-
right: 0;
4670+
left: 0;
46724671
}
46734672

46744673
#ov1 .positionTopRight {

js/config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ module.exports = {
1515
keyShortcuts: {
1616
undo: 'z',
1717
discover: 'd',
18-
myPage: 'h',
19-
customizePage: 'e',
20-
create: 'n',
21-
purchases: 't',
22-
sales: 'y',
23-
cases: 'j',
24-
settings: 'g',
25-
addressBar: 'l',
18+
myPage: 'j',
19+
customizePage: 'k',
20+
create: 'l',
21+
purchases: ',',
22+
sales: '.',
23+
cases: '/',
24+
settings: ';',
25+
addressBar: '[',
2626
save: 's',
27+
refresh: 't',
2728
restart: 'r'
2829
},
2930

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@
568568
"cases": "Cases",
569569
"notifications": "Notifications",
570570
"settings": "Settings",
571+
"refresh": "Refresh Page",
571572
"restart": "Restart Application",
572573
"about": "About OpenBazaar",
573574
"support": "Support OpenBazaar",

js/main.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,13 @@ $('body').on('keypress', 'input', function(event) {
234234

235235
//keyboard shortucts
236236
$(window).bind('keydown', function(e) {
237-
if ((e.ctrlKey || e.metaKey) && !e.altKey) { //test for alt key to prevent international keyboard issues
238-
var route = null,
239-
char = String.fromCharCode(e.which).toLowerCase();
237+
var char = String.fromCharCode(e.which).toLowerCase(),
238+
ctrl = (e.ctrlKey || e.metaKey) && !e.altKey, //test for alt key to prevent international keyboard issues
239+
route = null;
240240

241+
if (e.keyCode == 116) { //on F5 press
242+
Backbone.history.loadUrl();
243+
}
241244
switch (char) {
242245
case config.keyShortcuts.undo:
243246
//run undo programmatically to avoid crash
@@ -268,6 +271,16 @@ $(window).bind('keydown', function(e) {
268271
case config.keyShortcuts.settings:
269272
route = 'settings';
270273
break;
274+
case config.keyShortcuts.addressBar:
275+
// Select all text in address bar
276+
$('.js-navAddressBar').select();
277+
break;
278+
case config.keyShortcuts.save:
279+
window.obEventBus.trigger('saveCurrentForm');
280+
break;
281+
case config.keyShortcuts.refresh:
282+
Backbone.history.loadUrl();
283+
break;
271284
}
272285

273286
if (route !== null) {

js/templates/pageNav.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
123123
<%= polyglot.t('nav.settings') %>
124124
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.settings.toUpperCase() %></span>
125125
</a>
126+
<a class="js-navRefresh">
127+
<span class="ion-loop fontSize11 marginRight2 textOpacity1"></span>
128+
<%= polyglot.t('nav.refresh') %>
129+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.refresh.toUpperCase() %></span>
130+
</a>
126131
<a class="js-navRestart">
127132
<span class="ion-refresh fontSize11 marginRight2 textOpacity1"></span>
128133
<%= polyglot.t('nav.restart') %>

js/templates/transactionModal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
991991
<div class="js-main js-discussion transactionDiscussionTab" style="height:319px">
992992
<div class="scrollOverflowY js-discussionScroller customThemeScrollbar" style="height: 237px;">
993993
<div class="js-discussionWrapperEmpty textOpacity50 fontSize14 marginTop80 alignCenter"><%= polyglot.t('transactions.NoMessages') %></div>
994-
<div class="js-discussionWrapper">
994+
<div class="custCol-text js-discussionWrapper">
995995
</div>
996996
</div>
997997
<div class="flexRow pad10Top width100 positionBottom custCol-secondary js-discussionForm border2 custCol-border-secondary">

0 commit comments

Comments
 (0)