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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 { VKEY_RIGHT, CtrlKey | ShiftKey, | 378 { VKEY_RIGHT, CtrlKey | ShiftKey, |
379 "MoveWordRightAndModifySelection" }, | 379 "MoveWordRightAndModifySelection" }, |
380 #endif | 380 #endif |
381 { VKEY_UP, 0, "MoveUp" }, | 381 { VKEY_UP, 0, "MoveUp" }, |
382 { VKEY_UP, ShiftKey, "MoveUpAndModifySelection" }, | 382 { VKEY_UP, ShiftKey, "MoveUpAndModifySelection" }, |
383 { VKEY_PRIOR, ShiftKey, "MovePageUpAndModifySelection" }, | 383 { VKEY_PRIOR, ShiftKey, "MovePageUpAndModifySelection" }, |
384 { VKEY_DOWN, 0, "MoveDown" }, | 384 { VKEY_DOWN, 0, "MoveDown" }, |
385 { VKEY_DOWN, ShiftKey, "MoveDownAndModifySelection" }, | 385 { VKEY_DOWN, ShiftKey, "MoveDownAndModifySelection" }, |
386 { VKEY_NEXT, ShiftKey, "MovePageDownAndModifySelection" }, | 386 { VKEY_NEXT, ShiftKey, "MovePageDownAndModifySelection" }, |
387 #if !OS(DARWIN) | 387 #if !OS(DARWIN) |
| 388 { VKEY_UP, CtrlKey, "MoveParagraphBackward" }, |
| 389 { VKEY_UP, CtrlKey | ShiftKey, "MoveParagraphBackwardAndModifySelection"
}, |
| 390 { VKEY_DOWN, CtrlKey, "MoveParagraphForward" }, |
| 391 { VKEY_DOWN, CtrlKey | ShiftKey, "MoveParagraphForwardAndModifySelection"
}, |
388 { VKEY_PRIOR, 0, "MovePageUp" }, | 392 { VKEY_PRIOR, 0, "MovePageUp" }, |
389 { VKEY_NEXT, 0, "MovePageDown" }, | 393 { VKEY_NEXT, 0, "MovePageDown" }, |
390 #endif | 394 #endif |
391 { VKEY_HOME, 0, "MoveToBeginningOfLine" }, | 395 { VKEY_HOME, 0, "MoveToBeginningOfLine" }, |
392 { VKEY_HOME, ShiftKey, | 396 { VKEY_HOME, ShiftKey, |
393 "MoveToBeginningOfLineAndModifySelection" }, | 397 "MoveToBeginningOfLineAndModifySelection" }, |
394 #if OS(DARWIN) | 398 #if OS(DARWIN) |
395 { VKEY_LEFT, CommandKey, "MoveToBeginningOfLine" }, | 399 { VKEY_LEFT, CommandKey, "MoveToBeginningOfLine" }, |
396 { VKEY_LEFT, CommandKey | ShiftKey, | 400 { VKEY_LEFT, CommandKey | ShiftKey, |
397 "MoveToBeginningOfLineAndModifySelection" }, | 401 "MoveToBeginningOfLineAndModifySelection" }, |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 #endif | 763 #endif |
760 } | 764 } |
761 | 765 |
762 void EditorClientImpl::willSetInputMethodState() | 766 void EditorClientImpl::willSetInputMethodState() |
763 { | 767 { |
764 if (m_webView->client()) | 768 if (m_webView->client()) |
765 m_webView->client()->resetInputMethod(); | 769 m_webView->client()->resetInputMethod(); |
766 } | 770 } |
767 | 771 |
768 } // namesace WebKit | 772 } // namesace WebKit |
OLD | NEW |