aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/webidls/HTMLFormElement.webidl2
-rw-r--r--components/script/textinput.rs20
2 files changed, 9 insertions, 13 deletions
diff --git a/components/script/dom/webidls/HTMLFormElement.webidl b/components/script/dom/webidls/HTMLFormElement.webidl
index fba10d25509..c9232cc6d6c 100644
--- a/components/script/dom/webidls/HTMLFormElement.webidl
+++ b/components/script/dom/webidls/HTMLFormElement.webidl
@@ -24,6 +24,4 @@ interface HTMLFormElement : HTMLElement {
void reset();
//boolean checkValidity();
//boolean reportValidity();
-
- //void requestAutocomplete();
};
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index 144be9dbd78..b508ba2806c 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -632,14 +632,6 @@ impl<T: ClipboardProvider> TextInput<T> {
self.insert_char(c);
KeyReaction::DispatchInput
},
- #[cfg(target_os = "macos")]
- (None, Key::Home) => {
- KeyReaction::RedrawSelection
- },
- #[cfg(target_os = "macos")]
- (None, Key::End) => {
- KeyReaction::RedrawSelection
- },
(None, Key::Delete) => {
self.delete_char(Direction::Forward);
KeyReaction::DispatchInput
@@ -694,12 +686,18 @@ impl<T: ClipboardProvider> TextInput<T> {
},
(None, Key::Enter) | (None, Key::KpEnter) => self.handle_return(),
(None, Key::Home) => {
- self.edit_point.index = 0;
+ #[cfg(not(target_os = "macos"))]
+ {
+ self.edit_point.index = 0;
+ }
KeyReaction::RedrawSelection
},
(None, Key::End) => {
- self.edit_point.index = self.current_line_length();
- self.assert_ok_selection();
+ #[cfg(not(target_os = "macos"))]
+ {
+ self.edit_point.index = self.current_line_length();
+ self.assert_ok_selection();
+ }
KeyReaction::RedrawSelection
},
(None, Key::PageUp) => {