aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-05-28 03:09:33 +0200
committerest31 <MTest31@outlook.com>2017-06-01 16:37:29 +0200
commit28b854d724b0b2e418769154b4312a35e096a973 (patch)
tree168f46ba841235a82a024f9164329592ffff79bd /components/script/textinput.rs
parent433d68955b276266d620f788ad509678edc35071 (diff)
downloadservo-28b854d724b0b2e418769154b4312a35e096a973.tar.gz
servo-28b854d724b0b2e418769154b4312a35e096a973.zip
Bring back clipboard support
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r--components/script/textinput.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index b508ba2806c..d1c473f5ad8 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -613,17 +613,17 @@ impl<T: ClipboardProvider> TextInput<T> {
self.adjust_horizontal_to_line_end(Direction::Forward, maybe_select);
KeyReaction::RedrawSelection
},
- (Some('a'), _) if is_control_key(mods) => {
+ (_, Key::A) if is_control_key(mods) => {
self.select_all();
KeyReaction::RedrawSelection
},
- (Some('c'), _) if is_control_key(mods) => {
+ (_, Key::C) if is_control_key(mods) => {
if let Some(text) = self.get_selection_text() {
self.clipboard_provider.set_clipboard_contents(text);
}
KeyReaction::DispatchInput
},
- (Some('v'), _) if is_control_key(mods) => {
+ (_, Key::V) if is_control_key(mods) => {
let contents = self.clipboard_provider.clipboard_contents();
self.insert_string(contents);
KeyReaction::DispatchInput