WPrefs: Remove duplicated function captureShortcut()
commit3ae34b958c8519618f0fbd648eee10118a783ed2
authorRodolfo García Peñas (kix) <kix@kix.es>
Tue, 17 Jan 2012 20:43:58 +0000 (17 21:43 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 20 Jan 2012 21:50:12 +0000 (20 21:50 +0000)
treee874da70ac51e842b668349ac46ca19636db63d5
parent809c536879ebe339a5e4388669a389cb26835b3d
WPrefs: Remove duplicated function captureShortcut()

The function captureShortcut() is implemented in both files KeyboardShortcuts.c
and Menu.c, with just a minor difference regarding the conversion to upper case.

To unify them, define a new function which includes a new boolean paramenter to
dictate whether the upper case conversion should be done or not.
WPrefs.app/KeyboardShortcuts.c
WPrefs.app/Menu.c