OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple, Inc. All rights reserved. |
3 * Copyright (C) 2012 Google, Inc. All rights reserved. | 3 * Copyright (C) 2012 Google, Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // blinking. | 452 // blinking. |
453 { 'C', CtrlKey, "Copy" }, | 453 { 'C', CtrlKey, "Copy" }, |
454 { 'V', CtrlKey, "Paste" }, | 454 { 'V', CtrlKey, "Paste" }, |
455 { 'V', CtrlKey | ShiftKey, "PasteAndMatchStyle" }, | 455 { 'V', CtrlKey | ShiftKey, "PasteAndMatchStyle" }, |
456 { 'X', CtrlKey, "Cut" }, | 456 { 'X', CtrlKey, "Cut" }, |
457 { 'A', CtrlKey, "SelectAll" }, | 457 { 'A', CtrlKey, "SelectAll" }, |
458 { 'Z', CtrlKey, "Undo" }, | 458 { 'Z', CtrlKey, "Undo" }, |
459 { 'Z', CtrlKey | ShiftKey, "Redo" }, | 459 { 'Z', CtrlKey | ShiftKey, "Redo" }, |
460 { 'Y', CtrlKey, "Redo" }, | 460 { 'Y', CtrlKey, "Redo" }, |
461 #endif | 461 #endif |
| 462 { VKEY_INSERT, 0, "OverWrite" }, |
462 }; | 463 }; |
463 | 464 |
464 static const KeyPressEntry keyPressEntries[] = { | 465 static const KeyPressEntry keyPressEntries[] = { |
465 { '\t', 0, "InsertTab" }, | 466 { '\t', 0, "InsertTab" }, |
466 { '\t', ShiftKey, "InsertBacktab" }, | 467 { '\t', ShiftKey, "InsertBacktab" }, |
467 { '\r', 0, "InsertNewline" }, | 468 { '\r', 0, "InsertNewline" }, |
468 { '\r', CtrlKey, "InsertNewline" }, | 469 { '\r', CtrlKey, "InsertNewline" }, |
469 { '\r', ShiftKey, "InsertLineBreak" }, | 470 { '\r', ShiftKey, "InsertLineBreak" }, |
470 { '\r', AltKey, "InsertNewline" }, | 471 { '\r', AltKey, "InsertNewline" }, |
471 { '\r', AltKey | ShiftKey, "InsertNewline" }, | 472 { '\r', AltKey | ShiftKey, "InsertNewline" }, |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 #endif | 761 #endif |
761 } | 762 } |
762 | 763 |
763 void EditorClientImpl::willSetInputMethodState() | 764 void EditorClientImpl::willSetInputMethodState() |
764 { | 765 { |
765 if (m_webView->client()) | 766 if (m_webView->client()) |
766 m_webView->client()->resetInputMethod(); | 767 m_webView->client()->resetInputMethod(); |
767 } | 768 } |
768 | 769 |
769 } // namesace WebKit | 770 } // namesace WebKit |
OLD | NEW |