Skip to content

Commit 5fe3a74

Browse files
committed
Allow selecting search input text
1 parent 977ca07 commit 5fe3a74

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ app.on('ready', function(){
6464
label: 'Paste',
6565
accelerator: 'Command+V',
6666
selector: 'paste:'
67+
},
68+
{
69+
label: 'Select All',
70+
accelerator: 'Command+A',
71+
selector: 'selectAll:'
6772
}
6873
]
6974
}];

src/less/style.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,15 @@
110110

111111
/* @group Misc */
112112

113+
html, body {
114+
-webkit-user-select: none;
115+
}
116+
113117
body {
114118
.FontOpenSansRegular();
115119
cursor: default;
116120
}
117121

118-
::selection {
119-
color: inherit;
120-
background: inherit;
121-
}
122-
123122
html, body {
124123
height: 100%;
125124
overflow: hidden;
@@ -421,6 +420,7 @@ input {
421420
font-size: @SearchFontSize;
422421
border: none;
423422
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);
423+
-webkit-user-select: text;
424424
}
425425

426426
/* @end Search input */

0 commit comments

Comments
 (0)